verekia / initializr

HTML5 Boilerplate Build Tool
http://initializr.com
1.45k stars 239 forks source link

CDN #82

Open thugsb opened 11 years ago

thugsb commented 11 years ago

Consider the option to link to jQuery+Bootstrap CDN, instead of including the files. http://www.bootstrapcdn.com/ https://developers.google.com/speed/libraries/devguide#jquery

You could also include the fallback, i.e. http://css-tricks.com/snippets/jquery/fallback-for-cdn-hosted-jquery/

Renkas commented 10 years ago

How does this differ from what is already in initializr?

thugsb commented 10 years ago

At least when I opened this issue 3 months ago, it was the case that initializr would include the bootstrap files in your project, e.g. <link href="bootstrap.min.css"/>, whereas it would be nice to instead include links to CDN-hosted libraries, e.g. <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">.

Obv that doesn't allow for customization with LESS, but CDN-hosted files are sometimes more desirable.

Renkas commented 10 years ago

Well my comment was on the jQuery part as it already has this kind of fallback - and it was definitely there 3 months ago.

Bootstrap is different thing - I personally would not use CDN on that.

thugsb commented 10 years ago

But many people do...hence why the CDN exists and is so popular. Up to you, but imho it'd be nice to have the option. If you don't want to, close the issue. :)

fulldecent commented 10 years ago

+1 on CDN for everything, this is the future for templated development