Load times with @font-face vs. Google fonts or localhost files vs. CDN's -


is loading fonts via storing them on server , using @font-face slower loading them google's font api? or depend on font , vary situation situation?

and same javascript , other similar files: faster or slower load cdn's store files on server , load them (locally on server)?

or there many variables involved situation situation generalize single answer? imagine depends on cdn you're accessing and/or personal server settings , size/nature of files you're loading, etc, curious if there might general rule or strategy knowing faster?

a cdn might faster, on base built speed in mind (high performance, tuned web servers, caching...) , composed network of geographically distributed servers, lowering latence both because nearer , because share load. also, directly placed on backbones, allow faster transfer rates low-to-mid-priced server ever do.

thus said, low traffic website visited 1 specific country, in turn near server location, difference in load irrelevant.

the reason using google or jquery cdn both saving bandwidth (if respective owner allows use theirs, of course) on server , sure not miss urgent patches, push fixed versions on cdn possible, while have notified, download new version, load on server (although guess not great issues in modern, sanboxed browsers).


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -