Minifyning wp-content-themes-Newspaper-js-tagdiv_theme.js

Posted in: Newspaper
Post count: 260

Hello

I test regulary our site on GTMetrix:
https://gtmetrix.com/reports/www.virtualmagie.com/38EiYbsI

We use WPRocket.

Why these file is not minify?
Minifying http://vm-510e.kxcdn.com/wp-content/cache/busting/1/wp-content-themes-Newspaper-js-tagdiv_theme.js could save 46.6KiB (48% reduction) after compression. See optimized version.

Could you please do that on your next upgrade?

Thanks

Post count: 9544

Because WProcket minification of javascript usually breaks it. It’s almost impossible to “auto-minify” javascript.

Google has some help on this topic, and I believe I have some examples of how to do this manually in my long winded optimization tutorial thread found in the docs > tutorials > DIY > best of forums.

Theme devs often don’t minify all the files, as a buyer might want to edit/change something which is very very hard to do from compressed version without comments.

However, you can easily do this yourself with an online compressor tool recommend by Google; you simply copy the file, paste into compressor, paste optimized version into file and upload on server over the original file. Shazam.

If you’re unable to find my optimization thread, here is link to compress the JS file(s) you wish to optimize manually (you will have to do again with each theme update!).

http://closure-compiler.appspot.com/home

Good luck!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.