Is there a CDN for jqGrid?
Asked Answered
S

4

11

Anyone know if there is a CDN for jqGrid?

Thanks!

Slr answered 27/4, 2012 at 21:50 Comment(1)
you can do it yourself, with jare.io, a free and instant CDNCaliber
P
9

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.

Peerage answered 10/6, 2013 at 7:49 Comment(0)
A
1

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

Abduct answered 27/4, 2012 at 21:54 Comment(0)
P
1

You can try submitting a request to http://www.jsdelivr.com

Poulenc answered 1/7, 2012 at 19:45 Comment(2)
How reliable is jsdelivr.com?Hanky
I see that now they uploaded jqGrid onto jsdelivr, but it seems it's missing the minified full version jquery.jqGrid.min.js (the one that you obtain when running the jqGrid Download Builder): jsdelivr.com/#!jqgridThallium
B
0

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.

Bahena answered 4/5, 2012 at 14:15 Comment(2)
Using github to serve css or js is terrible advice. If the author of the github repo makes any modifications, it could screw your entire site up. You really shouldnt be including from github in any way shape or form. The author could restructure the layout of his/her project, remove the project entirely, etc. Plus github doesn't serve 'raw' files with it's expire headers far into the future, or with the correct headers. It'll be slower than serving from your own server.Damnify
@RickM I agree. This is only valid for development environments as a quick and dirty solution. Since GruntJS has become so solid, I no longer use CDNs at all. I can import my dependencies and concat them (safely) into a single vendor.js and vendor.css file.Bahena

© 2022 - 2024 — McMap. All rights reserved.