Skip to content

Latest commit

 

History

History

optimization-pack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Web Performance Optimization Pack

Combined set of workers to optimize performance. Currently a combined set of:

  • Fast Google Fonts - Inlines the browser-specific font CSS and re-hosts the font files through the page origin (saving round trips). Blog post with more details here.
  • Third-party Scripts - Cache-extends and rehosts static third-party scripts from well-known providers (things like Ajax library CDN's, static analytics code, A/B testing code, etc).
  • Edge-Cache HTML - Caches dynamic HTML on the edge when combined with a CMS that supports it (plugin for wordpress is available). Blog post with more details here

This operates on blocking responses and processes the full HTML with no streaming which can cause pages that rely on early flushing to perform slower (rare but worth being aware of).

Caution, this has not been tested extensively in a production environment so there may still be some edge cases that are not handled.

Individual optimizations can be turned on or off by changing the boolean variables for each one at the top of the script.