Seo Forum

Search Engine Optimization => Advanced Search Engine Optimization => Topic started by: jaysh4922 on 11-30-2016, 22:49:13

Title: Minify JavaScript
Post by: jaysh4922 on 11-30-2016, 22:49:13
Why Minify JavaScript?
Title: Re: Minify JavaScript
Post by: fayeseom on 01-01-2017, 22:12:42
When I was at DrupalCon Denver I suggested that all production JavaScript should be minified. This seemed like something simple that I wouldn't get any push back on. After all, the major JavaScript packages do it and the performance recommendation tools all recommend it. I was wrong. Over the past couple weeks I've received push back from numerous people who've told that me if you use gzip (or deflate) compression there's no need to minify JavaScript. So, here is a case for minifying JavaScript.
Title: Re: Minify JavaScript
Post by: wellliving on 01-18-2017, 00:02:16
There are a lot of programs that will minify your Javascript code for free – all you have to do is simply google “Javascript minifier”, and these sites will simply ask you to submit your Javascript code and will return the minified result.
Title: Re: Minify JavaScript
Post by: nancyv on 01-19-2017, 23:18:28
In the ENGINEEREDWEB[dot]COM blog "why minify javascript?" have a very good clarification about JavaScript minify;

1. drupal.js and jquery.once.js are smaller minified than compressed with gzip. Because of these two files have lots of fantastic documentation in them. When a file is minified this is stripped out as it's not needed for functionality.

2. Good for saving total bandwidth of your website through the saving of the website's total files size.

3. For the avoidance of the unnecessary round trip requests.
Title: Re: Minify JavaScript
Post by: Usman Shani on 02-10-2017, 04:26:38
 Minification in Javascript is the process of removing all characters that are not necessary from the Javascript source code. That is why it is called “minification” – because all of the data that is not necessary to the functioning of the Javascript is removed from the source code, and therefore the Javascript is “minimized”. Even though these characters are removed from the Javascript source code, the functionality of the Javascript code does not change at all. So, your Javascript code will behave exactly the same even after it goes through the minification process. Code that has gone through the minification process is also known as “minified” code.
Title: Re: Minify JavaScript
Post by: Yuga on 04-20-2021, 03:08:48
JavaScript code is written for, and by, humans, who need whitespace, formatting, and comments to be able to understand and debug the code
Title: Re: Minify JavaScript
Post by: seigell971 on 07-17-2021, 00:00:22
Google hates java script. So, avoid java script as much possible. Minifying java script reduces its size. So, the loading time will reduce. We should always minify the java scripts to load faster in order the increase website loading speed. Loading time is also a ranking factor. So, it helps you in achieving higher ranking.