How it Works
But What About The Cache?
Find Balance With Site Optimizer
Yottaa Site Optimizer makes it easy to configure and set exceptions, so you don’t have to make an all-or-nothing decision with regard to inlining. With the inlining feature set to “”On””, you have several options:
- Set a maximum size for scripts/stylesheets to be inlined. Leveraging the cache is most useful for large files, so a good way to balance performance is to set a weight threshold under which all files will be inlined.
- Set page exceptions. Perhaps the home page of your eCommerce site sees lots of repeat visits, but individual category pages do not. You can set an exception to the inlining rule for just the home page, so repeat visitors there can leverage the cache.
- Set device or browser exceptions. Inlining is even more useful for mobile visitors, because requests take longer to travel over cell networks. If a site gets a lot of mobile traffic, you can set inlining aggressively, but make exceptions based on the user agent so that desktop browsers don’t inline.