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.
the root document of webpage
css stylesheets
woff fonts
script libraries
images loaded using onload event handlers
synchronous xmlhttprequest (xhr) requests
asynchronous script requests (such indexeddb, web workers, file api, , others)
asynchronous xhr requests
html5 audio , video
microsoft activex , other controls loaded using object element
deferred javascript (defer="true")
the context important:
ie11 prioritizes requests based on context of request:
requests made webpage in foreground tab
requests made content loaded in iframe elements in foreground tab
requests made webpages in background tabs
requests pre-rendered content
references