Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

MaxCDN Content for jquery.com #42

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants
Contributor

jdorfman commented Jul 11, 2013

Content for the CDN Tab.

Owner

gnarf commented Jul 30, 2013

Do we just want to update the /download page instead?

Owner

scottgonzalez commented Jul 31, 2013

That would be my preference. I hadn't looked at the content in any of these pulls because they say "[NOT READY]". I'm not sure why we'd want a separate page for CDN info. I think users are accustomed to finding everything in one place. I'm also not sure we want to be listing half a dozen common versions. We want people on latest.

Contributor

jdorfman commented Jul 31, 2013

@gnarf @scottgonzalez I have to disagree. The CDN content is way below the fold.

@gnarf gnarf commented on the diff Jul 31, 2013

pages/cdn.md
+To see all available files and versions, visit [http://code.jquery.com](http://code.jquery.com)
+
+### Other CDNs
+
+The following CDNs also host compressed and uncompressed versions of jQuery releases. Starting with jQuery 1.9 they may also host [sourcemap files](http://blog.jquery.com/2013/01/09/jquery-1-9-rc1-and-migrate-rc1-released/#sourcemaps); check the site's documentation.
+
+**Note that there may be delays between a jQuery release and its availability there. Please be patient, they receive the files at the same time the blog post is made public. Beta and release candidates are not hosted by these CDNs.**
+
+* [Google CDN](http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery)
+* [Microsoft CDN](http://www.asp.net/ajaxlibrary/cdn.ashx#jQuery_Releases_on_the_CDN_0)
+* [JSDelivr CDN](http://www.jsdelivr.com/#!jquery)
+* [CDNJS CDN](http://cdnjs.com/#jquery)
+
+## Past Releases
+
+All past releases can be found on the [jQuery CDN](http://code.jquery.com). Here are some commonly used recent versions:
@gnarf

gnarf Jul 31, 2013

Owner

We should probably just link to http://code.jquery.com/jquery/ and skip the table of releases here...

@gnarf gnarf commented on the diff Jul 31, 2013

pages/cdn.md
+ "title": "jQuery CDN",
+ "pageTemplate": "page-contentfull.php",
+ "customFields": [
+ { "key": "hide_title", "value": 1 }
+ ]
+}
+</script>
+
+## Using jQuery with a CDN
+
+[CDNs](http://en.wikipedia.org/wiki/Content_delivery_network) can offer a performance benefit by hosting jQuery on servers spread across the globe. This also offers an advantage that
+if the visitor to your webpage has already downloaded a copy of jQuery from the same CDN, it won't have to be re-downloaded.
+
+### jQuery's CDN provided by [MaxCDN](http://www.maxcdn.com)
+
+To use the jQuery CDN, just reference the file directly from `//code.jquery.com` in the script tag (now supporting `https`):
@gnarf

gnarf Jul 31, 2013

Owner

I'd leave out the (now supporting https) part for now - since until the TTLs expire its anyones guess if SSL is supported :)

@gnarf gnarf commented on the diff Jul 31, 2013

pages/cdn.md
+## Using jQuery with a CDN
+
+[CDNs](http://en.wikipedia.org/wiki/Content_delivery_network) can offer a performance benefit by hosting jQuery on servers spread across the globe. This also offers an advantage that
+if the visitor to your webpage has already downloaded a copy of jQuery from the same CDN, it won't have to be re-downloaded.
+
+### jQuery's CDN provided by [MaxCDN](http://www.maxcdn.com)
+
+To use the jQuery CDN, just reference the file directly from `//code.jquery.com` in the script tag (now supporting `https`):
+```
+<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
+<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
+```
+
+Starting with jQuery 1.9, [sourcemap files](http://blog.jquery.com/2013/01/09/jquery-1-9-rc1-and-migrate-rc1-released/#sourcemaps) are available on the jQuery CDN as well. If compressed files are included directly from the CDN as shown above, sourcemap-aware browsers such as Google Chrome will use them when you enable sourcemap support.
+
+To see all available files and versions, visit [http://code.jquery.com](http://code.jquery.com)
@gnarf

gnarf Jul 31, 2013

Owner

http://code.jquery.com/jquery/ (it is jQuery core's page after all)

Owner

gnarf commented Jul 31, 2013

We should pull the CDN content out of /download then and link here...

CC @dmethvin - please look this over and add any suggestions - I'd like to merge this today if possible.

Owner

scottgonzalez commented Jul 31, 2013

I just looked at the existing download page, and I see that the common versions came from there. After a quick look at that page, I'd say it could use some cleanup. @jdorfman If we move the CDN info to the top, would that address your concern? We could also build something similar to the CDN chooser that dojo has: http://dojotoolkit.org/download/

Whether we add a CDN page or not, I think we need to make some changes on the download page.

Owner

dmethvin commented Jul 31, 2013

I'd really prefer to avoid a CDN page and just update the download page. The new code.jquery.com page is very nice looking so we can lean a bit more on that as well. It would be good to eliminate all the multiple places where we update versions and reduce it to perhaps two, the download page and the code.jquery.com page.

Owner

scottgonzalez commented Jul 31, 2013

@dmethvin Since I know how much you hate updating version numbers, we can make it so you just need to update it once in jquery-wp-content and then use a variable everywhere. Computers are cool like that. :-)

Contributor

rdworth commented Jul 31, 2013

How 'bout a top-nav CDN link to code.jquery.com ?

Owner

dmethvin commented Jul 31, 2013

The "quick download" lets people miss the important information on the download page though. Once we have more post-1.9 users than pre-1.9 it could be good, but right now it's a hazard IMO.

Owner

scottgonzalez commented Jul 31, 2013

You can put important info on http://code.jquery.com/jquery/ if you want. I like @rdworth's idea of a top-nav CDN link that goes to the jQuery listing (not the index page).

Owner

dmethvin commented Jul 31, 2013

That works for me.

Owner

gnarf commented Mar 30, 2014

long dead/done in another pull

@gnarf gnarf closed this Mar 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment