Is naming minimized files with "min" necessary? [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
As you know, the minimized version of files that include CSS, JS and etc. are also named as "xxx.min.js". For example "bootstrap.min.js".
Is it in any way significant or necessary to include ".min." in a minimized file name in terms of SEO or semantics? Or is it just a convention to be followed?

It is just a convention.
It stops you, the developer, from getting your production and development files muddled.
If you provide your code as a download for other people to use, it makes it clear which version is which.

Related

What are the advantages of using Inline Javascript? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I know that Inline Javascript hasn't got many benefits but I would still like to know a couple positives of embedding scripts in the HTML of web pages.Thanks!
It doesn't require an additional HTTP request. (Independent caching is usually more valuable though, and HTTP 2 / SPDY will render the cost of additional requests moot.)
It can been distributed as a single file in lieu of hosting on a real URL (but that's irrelevant on the WWW).

How to bundle and minify javascript in continuous integration (jenkins) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I was looking for MsBuild tasks or command line tools to force web essentials javascript bundle generation and less compilation and did not find any.
Please help,
Pim
Take a look at YUI Compressor.

Can someone tell about this new HACK programming language from facebook [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I cant find many resources about it on the internet. I would like too look into this more and what similarities does it have with javascript!
It's not very Javascriptlike at all. It's more like PHP + static type annotations. It compiles to the HipHop Virtual Machine, for which Facebook has a JIT PHP compiler as well.
The resources that exist publicly are all at hacklang.org.

Best practice for including css and javascript files [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I've always wondered about including javascript libraries and a mess of stylesheets in pages that don't ever use them. It got me wondering if maybe performance would improve, however slight, if I were to include these files on an as needed basis. Is there a best practice to go by on this? Some of these javascript libraries are very large and if they're not needed, it would seem to me that they shouldn't be included.
I'd like to hear the thoughts from others on this.
I think you are talking about Asynchronous Module Definitions (AMD).
One of the more popular implementations of this is Require.js. Check it out.

JavaScript Minification & Concatenation Best Practices? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
If you are building a 10 page site and using uglifyJS to minify and concatenate all the javascript code to a single file, what is the best practice for optimizing code globally across the site?
Let's say for arguments sake all pages have shared code and have some unique code. Do you include all the code into the single minified javascript file and include code that won't be used on every page? Or should you create an additional minified javascript file for every page with the unique code?
I know the best choice is probably unique to every site but if there is a general rule of thumb that applies, I am curious to know what the best approach would be.

Categories

Resources