Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Add DNS Pre-fetch to Template #1679

Closed
codeviking opened this issue May 20, 2011 · 5 comments
Closed

Add DNS Pre-fetch to Template #1679

codeviking opened this issue May 20, 2011 · 5 comments

Comments

@codeviking
Copy link

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!

@codeviking
Copy link
Author

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
Copy link
Contributor

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
Copy link

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
Copy link
Author

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
Copy link
Contributor

Added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants