Minifying Is Breaking Site...


I've tried Minifying my site, but no matter what setting I use and toggle with, it ends up breaking the site and completely messes up the layout!

Please help me understand what I can do to effectively minify the site and speed up the page loading speed!

Thanks so much!

PS: When I ran the site speed test from Google, it recommended I at least minify the following:

Minifying…idge/css/linea-icons/style.css?ver=4.6.1 could save 2.5KiB (30% reduction) after compression.
Minifying…public/assets/css/settings.css?ver=5.2.6 could save 2.1KiB (28% reduction) after compression.
Minifying…dge/css/style_dynamic.css?ver=1479295217 could save 901B (13% reduction) after compression.

Minifying…es/bridge/js/jquery.stretch.js?ver=4.6.1 could save 1.1KiB (66% reduction) after compression.

THANKS AGAIN :slight_smile:

  • Vaughan

    Hi Brennan,

    Hope you're well?

    Everything was set to be excluded, this actually prevents any of those scripts working.

    I've put everything back & made a few tweaks to the settings.

    Don't try to get 100% score though as that will most likely break your site.

    A score above 80% is very good, rarely you will get above 90% and keep your site functioning due to JS issues.

    But try moving 1 or 2 at a time to footer, then save and doublecheck your site still works.

    You might be best making sure jQuery.js file is moved to header.

    But always check the site still functions correctly after making a small change.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.