Streaming jquery(JS files) from a CDN (Google)

前端 未结 5 1258
说谎
说谎 2020-12-19 13:15

This one is a case of not doing your homework.:-)

Apart from dynamic loading advantage, does it make sense to include a JavaScript library(jQuery in my case ) from

5条回答
  •  暖寄归人
    2020-12-19 13:34

    Are you sure scripts would be downloaded in parallel? This example from Cuzillion seems to be saying that only IE8 can do that.

    Also worth finding out is how many of your pageviews are first time visitors and how many have visited the site before to help you decide how much caching will influence download time. If you have a significant number of first time visitors it's probably worth skewing it in their favour to make the first time experience as fast as possible.

提交回复
热议问题