问题
Anyone know if there is a CDN for jqGrid?
Thanks!
回答1:
Here is CDN for JQgrid ; not min version, though.
http://www.jsdelivr.com/#!jqgrid
Once you get to the website, click on the Integration button and it will give you the JS code snippet you need to include to use the CDN.
回答2:
There's none that I could find, sorry.
You could take a look here: Hosting Javascript/CSS file on CDN similar to Google hosting jQuery
回答3:
You can try submitting a request to http://www.jsdelivr.com
回答4:
You could always link to the raw files on the Master branch at GitHub:
CSS: https://raw.github.com/tonytomov/jqGrid/master/css/ui.jqgrid.css
JS: https://github.com/tonytomov/jqGrid/tree/master/js
CSS is a clear win, but JS would need to include each individual module. That probably erodes the benefit of sourcing the include to an external site.
[update]
I wouldn't advocate doing this anywhere outside of development. In the long run, I think tools like Grunt/Bower are going to make CDNs less essential-unless you have multi-page apps.
来源:https://stackoverflow.com/questions/10358316/is-there-a-cdn-for-jqgrid