Link Details

Link 787503 thumbnail
User 448255 avatar

By dotCore
via blogs.msdn.com
Submitted: May 05 2012 / 16:08

When web developers are optimizing the performance of their sites, one of the first things they often want to do is use their homepage to pre-cache resources that will be used on later pages. They do so by kicking off resource pre-fetches after the other downloads on their homepage complete. It turns out that some sites use IMG tags for this purpose. IMGs seem like an ideal choice because they are not limited to same-origin requests, and if you prefetch a stylesheet or JavaScript file, the target rules or script will not execute when loaded into the IMG tag.
  • 1
  • 0
  • 244
  • 82

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java