Current time: 10-15-2019, 11:35 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Favicon with javascript to spare a http-request
08-15-2013, 09:27 PM (This post was last modified: 08-15-2013 09:27 PM by Geebee.)
Post: #1
Favicon with javascript to spare a http-request
This sounds wise:

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

:-)

Are there any objections against doing this?
Find all posts by this user
Quote this message in a reply
08-15-2013, 10:26 PM
Post: #2
RE: Favicon with javascript to spare a http-request
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-16-2013, 09:12 AM
Post: #3
RE: Favicon with javascript to spare a http-request
Thanks Patrick, food for thought! :-)
Find all posts by this user
Quote this message in a reply
08-16-2013, 12:47 PM
Post: #4
RE: Favicon with javascript to spare a http-request
(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.

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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