RealFaviconGenerator / realfavicongenerator

Generate favicon for all major platforms
508 stars 23 forks source link

Investigate inline, Base64-encoded favicon.ico #30

Open phbernard opened 10 years ago

phbernard commented 10 years ago

Requesting favicon.ico takes yet another HTTP request. It might be interesting to inline it in the HTML code, as a Base64 string. See http://stackoverflow.com/questions/5199902/isnt-it-silly-that-a-tiny-favicon-requires-yet-another-http-request-how-to-mak

It also increases the size of the page, including when it is downloaded by mobile devices... So this might be a good option, with strings attached.

onebitrocket commented 10 years ago

Base64 will also never get cached.

On 21 Mar 2014, at 18:54, Philippe Bernard notifications@github.com wrote:

Requesting favicon.ico takes yet another HTTP request. It might be interesting to inline it in the HTML code, as a Base64 string. See http://stackoverflow.com/questions/5199902/isnt-it-silly-that-a-tiny-favicon-requires-yet-another-http-request-how-to-mak

It also increases the size of the page, including when it is downloaded by mobile devices... So this might be a good option, with strings attached.

— Reply to this email directly or view it on GitHub.

pboling commented 3 years ago

@onebitrocket but the page can get cached, and thus the Base64 image string can be cached as part of the HTML of the page.