Advice on W3TC combined with asset cleanup
-
Hi,
I was considering unloading unused scripts and styles on specific pages, through functions.php or a plugin like Asset CleanUp. I was also wondering however about the final impact. I cannot seem to logically get my head around the “verdict”, so I was hoping maybe you or someone else could help me out getting things clearer.
My reasoning is this:
1)
Without W3TC, unloading unused scripts and styles for certain pages or post types initially seems like a good idea, as it would reduce loading time per page. So each page would only get the assets they need loaded.2)
With W3TC and without the Asset Cleanup, the combined scripts and styles would be one (larger) block — so a heavier download — but it would be advantageous on access to subsequent pages, as all needed JS+CSS would already be loaded the first time and thus be client browser cached.3)
With both W3TC and the Asset Cleanup however, the combined scripts and styles would be different blocks for certain pages, posts, post types. Access to subsequent pages would then each need to load their respective blocks (with generally needed duplicates!), as each page gets their own combination and thus is not browser cached after the first page visit.In other words, would this then result in an actual slowing down of the cache advantage? Different JS/CSS blocks would exist, resulting in extra HTTP requests and multiple downloads before all site assets are client cached for various pages.
Do you have any real world experience with this? Thanks in advance for the help and advice.
Rob
- The topic ‘Advice on W3TC combined with asset cleanup’ is closed to new replies.