Hacker News new | past | comments | ask | show | jobs | submit login

Neat, but I couldn't get three librairies with minified JS:

    https://cdn.jsdelivr.net/g/jquery@1.10.2,bootstrap@3.0.3,angularjs@1.2.10
And I couldn't get Boostrap CSS even if they say they also host CSS.

Also, it's not clear if you can or not mix CSS and JS in the query, that would be neat to do that and then to insert CSS with Javascript (or maybe that would be a bad idea).




jQuery was deployed from the official source. And it does load a map file suggesting its minified. Not sure why it looks like this.

You can mix CSS and JS in one query but its up to you to make it work.

To load Bootstrap CSS you need to specify the exact file like so

https://cdn.jsdelivr.net/g/bootstrap@3.1(css/bootstrap.min.c...

Because the main file for this project points to a js


Thanks, I didn't see the files were in sub-directories for Bootstrap.

Here is my final Javascript query: https://cdn.jsdelivr.net/g/jquery@1.10.2(jquery.min.js),boot...


You dont need to specify the exact files in this case. This code will load the exact same thing https://cdn.jsdelivr.net/g/jquery@1.10.2,bootstrap@3.0.3,ang...

You need to specify the files if you are loading files other than the one specified in the "mainfile" parameter. Or loading multiple files together.


The original file was not minified: https://github.com/jsdelivr/jsdelivr/pull/478




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: