Posts tagged “caching”

Use Autoptimize effectively

Keeping your WordPress website fast can become pretty tricky once you start installing plugins and off-the-shelf themes. Everything seems to want to load at least one CSS stylesheet, and sometimes a dozen or more JavaScript script files. Some also inject great chunks of CSS and JavaScript into every page. Luckily, there's the handy Autoptimize plugin to help you sort all of that out.

sessionStorage with expiry time

Session storage is a very handy tool for caching content fragments retrieved via AJAX. Once we've pulled the content once, and stuffed it into session storage, we can access it again quickly without the overhead of a round trip to the server. But what if we want to limit the age of that content, so that it expires before it gets too stale?