Ask / Submit
9

Browser favorites favicons loaded again and again

asked 2014-01-09 14:17:22 +0300

Plnt gravatar image

updated 2014-01-10 21:02:34 +0300

lk gravatar image

If I open browser favories I get list of my bookmarks. These bookmarks have favicons on the left side on each line. The problem is that these icons are not cached in the bookmarks database but they are loaded each time the bookmarks page is opened. Even if I don't restart the browser it triggers mass download of all favicons. These icons are small but if you have more bookmarks it's quite a lot of HTTP requests and traffic sent from the phone and it could be a problem for mobile connections which are sensitive for data transfers.

Suggestion on how to fix it:

Apart from URL and page title save also the favicon into favorites database. It's just few bytes for each favorite.

Update 09/01/2014 12:40 UTC

What also seems to be broken is the user agent of the browser when loading favicons.

For normal requests i see this in my web server log:

x.x.x.x - - [09/Jan/2014:13:04:52 +0100] "GET / HTTP/1.1" 200 688 "-" "Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0 SailfishBrowser/1.0 like Safari/538.1"

But for the favicon.ico requests it's this:

x.x.x.x - - [09/Jan/2014:13:05:49 +0100] "GET /favicon.ico HTTP/1.1" 404 275 "-" "Mozilla/5.0"
edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-01-09 15:45:54 +0300

veskuh gravatar image

Browser should not download all favicons when opening tab page. It is intended to lazily load favicons only for part of the bookmarks list that is visible (and maybe few more to keep the list easily flickable). Also there should be some caching involved. Since favicon size is tiny this hasn't so far been an issue, but obviously this is one candidate for optimization of browser UI.

Since favicons are downloaded by QML runtime and not the gecko engine the user agent string is different. Changing this sounds like a good idea, at least then logs in websites would get more logical entries from Sailfish Browser.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-01-09 14:17:22 +0300

Seen: 194 times

Last updated: Jan 09 '14