2019-01-11, 05:03 PM
Hi Mybb Team, so I've been trying to speed up my load times. I've used CDN's, minified all my javascript and css and also used image compression on most of the images on the domain. But most of my slow page time is due to scripts loading before the HTML is rendered.
How can I load scripts using defer or async or load scripts in the footer to solve this problem?
Things I've tried:
defer attribute
async attribute
putting script tags in footer template
All these actions have resulted in the JS not working. (My Alerts not popping up or Shoutbox not working)
![[Image: UQPKh1x.png]](https://camo.mybb.com/de4a0be2cb135c28381b3fb311fe325fa6219f8a/68747470733a2f2f692e696d6775722e636f6d2f5551504b6831782e706e67)
How can I load scripts using defer or async or load scripts in the footer to solve this problem?
Things I've tried:
defer attribute
async attribute
putting script tags in footer template
All these actions have resulted in the JS not working. (My Alerts not popping up or Shoutbox not working)