Use async instead of defer on 2nd script load
-
While debugging my page load times (FCP, etc.) I noticed that this plugin loads an external script just before </body> using the defer attribute. It’s rather pointless to use the defer attribute here as the entire DOM is already loaded before the parser even encounters the script. It only contributes to the delay before the DOMContentLoaded event fires (and when the loading symbol on the browser tab stops running).
I don’t know the name of the script as I have a caching mechanism (W3 Total Cache) which obfuscates it; but it starts with
var epdofitvids = epdofitvids ||
.I believe switching this script tag to use async instead of defer would help in lowering my pagespeed score.
- The topic ‘Use async instead of defer on 2nd script load’ is closed to new replies.