|
|
|
|
|
by Nux
5052 days ago
|
|
Ok, I'm not a developer and I'm probably missing the big picture or smth; my question:
- All this fuss is about hosting a few text files none bigger than several KB?? Who in this world does NOT afford to host a few small files nowadays? |
|
The advantage of sharing a CDN (as opposed to every site having it's own) is caching. If I visit website-a.com and they include jquery.js from cdnjs.com then I visit website-b.com that also uses the same file, I don't have to download it twice and website-b.com loads faster than if it served that file itself. That's the big win, IMO, but unfortunately depends on cdnjs having a high density of use. Even still, if you can shave a 100ms of the loading of your page that can matter.