Posts

Using the HTML5 Defer Property in WordPress

I was recently busy with optimizing a website when the site report we ran over at GT Metrix mentioned that we should be deferring all scripts on the website. The HTML5 Async / Defer property was built with the idea of speeding up the loading time of website by loading all javascript files asynchronously.

Issues on using HTML5 Defer / Async in WordPress

It seemed like a good idea at the time, although I ran into several problems early on:

  • There’s quite a bit of literature on the async / defer property, but precious little on how to use within a WordPress environment;
  • Trying to implement it from coding example, led to the WordPress admin panel being broken (especially the WordPress’ Tiny MCE editor)

Read more