This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Add DNS Pre-fetch to Template #1679
Closed
Description
On the following template:
I'd suggest the addition of:
Per http://html5boilerplate.com/docs/#DNS-Prefetching, this should have a positive effect on performance.
Thanks!
Activity
codeviking commentedon May 21, 2011
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.
StevenBlack commentedon May 22, 2011
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?
scottjehl commentedon May 24, 2011
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?
codeviking commentedon May 24, 2011
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...
toddparker commentedon Sep 27, 2011
Added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests