Loading external javascript via async script tag at the end of a webpage

前端 未结 1 973
死守一世寂寞
死守一世寂寞 2020-12-12 06:07

Loading external javascript via async script tag at the end of a webpage

I\'m trying to find out what is the best way to load javascript in terms of page speed.

相关标签:
1条回答
  • 2020-12-12 06:48

    Did I get u right? You are comparing sync with async using just one stream? That's waste of time, because of course the sync approach is faster.

    Just load dozens of files at a time and u will see, that the async way is much faster, since they are loaded in parallel, not in sequence.

    0 讨论(0)
提交回复
热议问题