• Resolved Dimoteca

    (@albertsauque)


    Hello, I have several clients that end up with huge combined js & css files, loading sources that aren’t needed.

    For example, loading slider or form js & css in page that don’t use these type of assets makes no sense…

    I know there are plugins like asset cleanup that allow unloading these sources.
    I have combined CSS & JS files that weigh above 1MB…

    The questions are:
    1.- Is asset cleanup compatible with the siteground plugin?

    2.- Are you guys in Siteground planning a release in your plugin capable of working this out?

    Thanks,

    • This topic was modified 3 years, 3 months ago by Dimoteca.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Elena Chavdarova

    (@elenachavdarova)

    Hello @albertsauque,

    Currently there is no option in the plugin to clear the assets only. Still you can use the admin bar “Purge SG Cache” button which will clear all assets as well.

    If there is a theme or plugin which enqueues an uniquely named JS file on every page it can cause high number of combined files generation.

    You can use a filter to exclude the script handler from combination. The filter should be added to the theme functions.php file. You can find more information in the plugin readme.

    Alternatively you can disable the JS combination and clear the cache in order to avoid this from reoccurring.

    Best Regards,
    Elena

Viewing 1 replies (of 1 total)
  • The topic ‘Huge combined JS & CSS files’ is closed to new replies.