In a previous article I talked about adding the
So we’ve got our scripts loading in the correct order – great! But unfortunately WordPress doesn’t load them asynchronously for you meaning your HTML will pause parsing while the script is downloaded and executed. Sounds pretty bad for performance, and it is, so we’ll be needing an extra something in our functions.php file. While this isn’t a perfect solution it’s the most solid I’ve found so far and is what we currently implement here at Go Tripod:
src attribute will be replaced with itself along with
defer and empty
onload attributes resulting in them being loaded asynchronously and giving your site a dramatic performance boost.
Got an idea for a project?
Need a website? Web-enabled software to streamline your business? Just some advice?