

MINIFY JAVASCRIPT HOW TO
How to Minify JavaScript with WordPress Plugin It does not break down the load time in seconds. The Google speed report just show’s efficiency. As a note, you can use other page speed reports to see the difference in real seconds. The key is to make this change to all the Java files for your site. Depending on how large the Java file was, you might even see an improvement in your score for both mobile and desktop.
MINIFY JAVASCRIPT CODE
If you did the steps above, you will see one less Java Code that needs to be worked on. Right after you make this change, you can run the page speed report in Google to see if you fixed the problem. Once that code is in place, I clicked on save changes. It will look something like this for your website once you do this. Then we go to edit and replace the code with the minified code we just worked on. Same steps as before, we find the correct folder and right-click on it. With the code minified, we are going to upload it to our site.

Some other tools that can do this job are With the after picture above, you can see how the tool took all of my lines of code and condensed everything for me. This tool is going to reduce all of this for me which is exactly what I want to do. You will notice there a lot of lines of code with a lot of spaces. Here is a picture of the original JavaScript code on my website. One of my favorite tools is called JS Compress.
MINIFY JAVASCRIPT FOR FREE
There are many great tools to use for free that don’t need a plugin to minify the JavaScript. Tools to Minify the JavaScript for your Website From there, we are going to take this code and minify it with a tool.

From here, I would suggest copying the original code and putting that into a notepad if anything happens to your site. For example, my problems were on the theme of my site, so I followed the path until I got to these files on my website.įrom here, you want to right-click on the file and click on edit. Head over to the file manager section and follow the path that Google is telling you the issues are from. I use GoDaddy, but the steps are pretty much the same for whoever else hosts your site. Ok, so we know that we have some files to work on to improve the load time for our site, but how do we find them on our site? The answer is that we need to head over to the file manager for our site. How to Find the JavaScript Files for your Website Then you can head over to your file manager to open that file to get the code. As a note, I already made these changes to my site, so that is why I can’t show my blog as an example. You can hover over each URL to read the entire path to where that JavaScript is from which will help us find it. Here is an example of a website that can minify their code according to Google. You can use Google’s Page Speed Report to find the Java files to work on. How to Run a Speed Test to Find the JavaScript Files to Minify? In this tutorial, we are going to show where to find your JavaScript files for your website, how to minify the code, and how to replace the code with a compressed version to speed up your website’s load time.
