-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add DNS Pre-fetch to Template #1679
Comments
Errr, so, figured I"d quickly add the appropriate tag to add: link rel="dns-prefetch" href="//code.jquery.com" This should (as the article notes) improve performance when fetching resources from the jquery CDN. |
This is a very interesting idea. Can you quantify the benefit of this? Maybe setup a performance test at http://jsperf.com/ ? Alternately, can you point to a good article that quantifies this generally? |
this is a great tip, but I'm not sure how much we want to promote a "boilerplate" type of approach to jQuery Mobile documents. I mean, we have widget roles and such, but I'm hesitant to start adding a bunch of tangential best practices to our demos and docs. It may confuse people wrt what they NEED to include for jQM. maybe a page in the docs could recommend pre-fetching alongside the CDN urls? |
I agree with @scottjehl, likely a "best-practices" type of recommendation. I'd love to see this type of thing start to get built out -- namely surrounding swatch templates, themeing, common jquery mobile design patterns, etc... |
Added to the feature request wiki: |
On the following template:
http://jsbin.com/onapa5/edit
I'd suggest the addition of:
Per http://html5boilerplate.com/docs/#DNS-Prefetching, this should have a positive effect on performance.
Thanks!
The text was updated successfully, but these errors were encountered: