html5 - HTML Prefetch Resources -


this might silly question want ask if prefetching resources js scripts , images slows page load.

eg: if have page number of these links:

<link rel="prefetch" href="http://example.com/images.png" /> 

will downloading them included in page load time or prefetching (which using idle browser time) not part of page load time stats?

does happen in background in idle time or part of page load?

thanks

this browser dependent:

android browser, firefox, , firefox mobile start prefetch requests after window.onload, chrome , opera start them possibly stealing tcp connections more important resources needed current page.

starting ie11, individual network requests prioritized type, in order.

  1. the root document of webpage

  2. css stylesheets

  3. woff fonts

  4. script libraries

  5. images loaded using onload event handlers

  6. synchronous xmlhttprequest (xhr) requests

  7. asynchronous script requests (such indexeddb, web workers, file api, , others)

  8. asynchronous xhr requests

  9. html5 audio , video

  10. microsoft activex , other controls loaded using object element

  11. deferred javascript (defer="true")

the context important:

ie11 prioritizes requests based on context of request:

  1. requests made webpage in foreground tab

  2. requests made content loaded in iframe elements in foreground tab

  3. requests made webpages in background tabs

  4. requests pre-rendered content

references


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -