Delay web view creation for placeholder tabs
Hello!
With Restore Tabs on Startup Epiphany creates processes for every tab immediately on startup and allocates memory. It doesn't matter whether the tabs are ever accessed. Therefore the number of open tabs in a last session directly influences initial memory allocation.
With 12 tabs the initial start of Epiphany will require 1.4 GiB of main memory. Before start:
After the start, no tabs are actually loaded except the last used (here stackoverflow):
With gnome-system-monitor we can see 12 processes of brwap->brwrap->WebKitWebProcess:
Please note, the tab content isn't right available. Only when the other tabs in the background are accessed, the actual websites are loaded. And weirdly the memory consumption increases even further. This behavior renders Epiphany nearly unusable with a high number of tabs.
Request Only launching one process for the last used tab, which is loaded right on startup. Firefox and Chrome act similarly. I'm rather sure Epiphany did that until two or three years ago.
Thank you
Related: #1610 (closed)