Current time: 02-20-2019, 07:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximum number of Preload hints?
04-08-2018, 01:13 AM
Post: #2
RE: Maximum number of Preload hints?
If the files are just normal script and link tags in the head then preloading won't help anything. The browser will already discover them and load them as soon as it would with preload hints. You want to use the preload hints for any "hidden" resources that the preload scanner won't be able to detect. Things loaded by external scripts (i.e. document.write).

Often you won't know the exact resource but you'll know the domain so you'll probably be using preconnect more than preload. A common use case for this is Google fonts. The fonts css loads the actual fonts from a different domain but the browser has no way to know until the css has been loaded. You can preconnect the font domain to have it ready for when the css finishes loading.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Maximum number of Preload hints? - pmeenan - 04-08-2018 01:13 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)