MyBB Community Forums

Full Version: Deferring Scripts in Headerinclude to Speed up Load Times
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
I know its another plugin but you could try Shades ThunderBoard plugin.
https://community.mybb.com/thread-191037.html
(2019-01-11, 06:12 PM)iAndrew Wrote: [ -> ]I know its another plugin but you could try Shades ThunderBoard plugin.
https://community.mybb.com/thread-191037.html

Are there any alternatives? I just want to load the scripts in a different way. There are js scripts that try to load other scripts but I don't know how to use them.