javascript - Could CDN be faster way to load resources? -


i setting admin panel blog today, , decided use cdn bootstrap link rather keeping files local on server since initial testing. figured add files server later in order speed up, that's when had thought.

this particular server bluehost shared server , inexplicably slow. faster if used cdn? , noticeable?

i know stackoverflow likes questions specific, let's use bootstrap's cdn in particular scenario since popular framework.

could faster if used cdn?

yes. cdns option not because fast servers, because when use popular cdn, sources need (e.g. boostrap, jquery) may have been downloaded user @ site and, such, hit browser's cache - , load fast possibly could.

and noticeable?

this depends on how slow current server in relation cdn.

google devtools have useful tool this. have whole section dedicated that: get started analyzing network performance in chrome devtools. includes guided tools assist in emulating connections , devices, analyzing requests (find out scripts taking longer load or stylesheets affecting rendering), , more.

x

in example above can see how time resource took download. screen available @ chrome (command+option+i [mac] or control+shift+i [windows, linux]).


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -