Skip to content
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
Closed
@codeviking

Description

@codeviking

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!

Activity

codeviking

codeviking commented on May 21, 2011

@codeviking
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

StevenBlack commented on May 22, 2011

@StevenBlack
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

scottjehl commented on May 24, 2011

@scottjehl

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

codeviking commented on May 24, 2011

@codeviking
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

toddparker commented on Sep 27, 2011

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @StevenBlack@scottjehl@toddparker@codeviking

        Issue actions

          Add DNS Pre-fetch to Template · Issue #1679 · jquery-archive/jquery-mobile