Mobile app version of vmapp.org
Login or Join
Michele947

: Mobile Load Time - Compressing JavaScript Our mobile site's homepage has a load time of 10.72 seconds, which ruins our mobile SEO and therefore traffic. The site is operating on WordPress. 6.8

@Michele947

Posted in: #Compression #Mobile #PageSpeed #Seo

Our mobile site's homepage has a load time of 10.72 seconds, which ruins our mobile SEO and therefore traffic. The site is operating on WordPress.

6.8 second of the 10.72 is spent scripting .js files.

How do I:

1) compress .js files?

2) Load and display the above-the-fold content first?

Is this at all related to caching?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

You can use plugin wordpress.org/plugins/bwp-minify/

And here is full detailed instruction given here www.wpbeginner.com/plugins/how-to-minify-css-javascript-files-in-wordpress/

Along with it I suggest gzip your website.
A complete guide to it is given here : www.bmthrive.com/how-to-gzip-website/ If your website uses images then use plugin WP SMUSHIT to optimize images to decrease load time.
When using plugins then there comes query string in css and JavaScript files like style.css?ver=5.1 which slows down website. so for it use wordpress.org/plugins/remove-query-strings-from-static-resources/ plugin .
Use Caching plugin like w3 cache.
Add image and css expiration tag
Guide : www.bmthrive.com/add-image-css-expiration-tag-htaccess-file/

Following all the above steps will reduce your website load time to a greatly less.

Use tools.pingdom.com/ to check load time before and after.

10% popularity Vote Up Vote Down


 

@Hamaas447

To directly answer your question I would differ you to the Better Minify Plugin: wordpress.org/plugins/bwp-minify/
It will easily let you compress your .js files.

And it will allow you to move your .js scripts to the footer to enhance your above-the-fold loading. HOWEVER I want to point out that moving all of your .js scripts to the footer isn't as simple as it sounds because certain theme elements will require certain scripts to load in-order to display properly. I recommend you do this piece by piece, finding out what works and doesn't.

I would also recommend considering Cloudflare - it's a great and free way to speed up your website AFTER you complete these optimizations.

And a properly setup cache system will definitely help you with your load times also.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme