Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [JavaScript] Deferring Scripts in Headerinclude to Speed up Load Times
#1
Not Solved
This user has been denied support. This user has been denied support.
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]
Reply
#2
Not Solved
I know its another plugin but you could try Shades ThunderBoard plugin.
https://community.mybb.com/thread-191037.html
[Image: sig2.jpg]
Reply
#3
Not Solved
This user has been denied support. This user has been denied support.
(01-11-2019, 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)