Current time: 09-16-2019, 06:04 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FavIcon.ico
06-24-2010, 05:12 PM
Post: #1
FavIcon.ico
Hey There,

I noticed in the test results a request always comes up for favicon.ico - the little icon that appears in the browser URL bar for some websites.

Code:
<link rel="shortcut icon" type="image/x-icon" href="http://www.<cfoutput>#myDomain#</cfoutput>/favicon.ico" />

I had the following in my code but after I tried removing it, the request still shows up. I also noticed the request usually occurs right after document complete gets sent.

Do all browsers automatically request this icon by default? If not, which browsers do and which browsers do not request it?

For anybody who reads this, you can get that little icon in your browser URL bar by adding favicon.ico to your root directory of your website.

Sincerely,
Travis Walters
Find all posts by this user
Quote this message in a reply
06-24-2010, 07:25 PM
Post: #2
RE: FavIcon.ico
(06-24-2010 05:12 PM)green-watch.org Wrote:  Hey There,

I noticed in the test results a request always comes up for favicon.ico - the little icon that appears in the browser URL bar for some websites.

Code:
<link rel="shortcut icon" type="image/x-icon" href="http://www.<cfoutput>#myDomain#</cfoutput>/favicon.ico" />

I had the following in my code but after I tried removing it, the request still shows up. I also noticed the request usually occurs right after document complete gets sent.

Yes, most Browser do that nowadays. With the code you wrote you can reference any location for the favicon. If it is absent, the Browser tries to fetch it from the domains root instead (http://www.example.com/favicon.ico)

I don't know of any method, to suppress the Browser-Request at all.

(06-24-2010 05:12 PM)green-watch.org Wrote:  Do all browsers automatically request this icon by default? If not, which browsers do and which browsers do not request it?

Actually the Wikipedia article has a matrix of Browser support, even splitted by Mime-Type support.

http://en.wikipedia.org/wiki/Favicon

(06-24-2010 05:12 PM)green-watch.org Wrote:  For anybody who reads this, you can get that little icon in your browser URL bar by adding favicon.ico to your root directory of your website.

Sincerely,
Travis Walters
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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