MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Favicon with javascript to spare a http-request

WebPagetest Forums

Full Version: Favicon with javascript to spare a http-request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This sounds wise:

http://www.adrikodde.nl/blog/2013/append...javascript

:-)

Are there any objections against doing this?
Not sure it's worth the effort. The favicon is usually a low-priority resource that browsers load lazily after the onload and you'd be moving those bytes into some shared javascript code that is loaded earlier.

It's a cool hack but I don't think I'd recommend doing it on a production site unless you had a compelling need to.
Thanks Patrick, food for thought! :-)
(08-15-2013 10:26 PM)pmeenan Wrote: [ -> ]Not sure it's worth the effort. The favicon is usually a low-priority resource that browsers load lazily after the onload and you'd be moving those bytes into some shared javascript code that is loaded earlier.

It's a cool hack but I don't think I'd recommend doing it on a production site unless you had a compelling need to.

+1

Without even considering the overhead of jQuery suspect it has a slightly negative impact.

Still need a favicon.ico on disk as many crawlers and other tools expect it to be there.
Reference URL's