diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2013-02-10 02:43:02 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2013-02-12 23:55:51 +0800 |
commit | ce7ab1e34804d9f7529bed13267f4619c37e32d9 (patch) | |
tree | 69f2a2e2dbce017980352b1afd57e1b38c8f278b /src/ephy-shell.h | |
parent | 551eb0cec6469ece8e826411d65bf806ec043142 (diff) | |
download | gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar.gz gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar.bz2 gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar.lz gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar.xz gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.tar.zst gsoc2013-epiphany-ce7ab1e34804d9f7529bed13267f4619c37e32d9.zip |
Only load pages when their tab is switched to upon session restore
Firefox has led the way implementing this behaviour to improve the experience
of restoring a session with lots of tabs. By delaying the loading of pages to
when the user shows interest in them, the time it takes for the browser to
become usable is diminished, and less pages are loaded in parallel, which
improves load time for the first pages the user sees.
It also has the advante of displaying less HTTP Basic Auth dialogs, when the
user has many tabs pointed to the same server.
https://bugzilla.gnome.org/show_bug.cgi?id=675302
Diffstat (limited to 'src/ephy-shell.h')
-rw-r--r-- | src/ephy-shell.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ephy-shell.h b/src/ephy-shell.h index f65083a7e..7b250fe26 100644 --- a/src/ephy-shell.h +++ b/src/ephy-shell.h @@ -59,6 +59,8 @@ typedef struct _EphyShellPrivate EphyShellPrivate; * @EPHY_NEW_TAB_HOME_PAGE: loads the home page in the new tab. * @EPHY_NEW_TAB_NEW_PAGE: legacy synonym for @EPHY_NEW_TAB_HOME_PAGE. * @EPHY_NEW_TAB_OPEN_PAGE: opens the provided network-request. + * @EPHY_NEW_TAB_DELAYED_OPEN_PAGE: store the provided network-request + * so that it will be opened when the tab is switched to. * @EPHY_NEW_TAB_FULLSCREEN_MODE: calls gtk_window_fullscreen on the * parent window of the new tab. * @EPHY_NEW_TAB_DONT_SHOW_WINDOW: do not show the window where the new @@ -85,6 +87,7 @@ typedef enum { EPHY_NEW_TAB_HOME_PAGE = 1 << 0, EPHY_NEW_TAB_NEW_PAGE = 1 << 1, EPHY_NEW_TAB_OPEN_PAGE = 1 << 2, + EPHY_NEW_TAB_DELAYED_OPEN_PAGE = 1 << 3, /* Page mode */ EPHY_NEW_TAB_FULLSCREEN_MODE = 1 << 4, |