When restoring tabs after closing or when loading a saved session, konqueror loads all tabs at once. This makes konqueror basically irresponsive for a while, and that period depends on the number of tabs and website weight. Modern browsers such as Firefox load only the active tab, and others only when they are accessed. Thus, the period it takes is that of opening the requested webpage only. This wish request is about implementing this feature in Konqueror for enhanced usability. It could be set as an option, if some users prefer loading all tabs at once, although in my opinion it doesn't scale well for 2+ tabs.
A possibly relevant merge request was started @ https://invent.kde.org/network/konqueror/-/merge_requests/259
Git commit fef77006fecfb26941f38a7c82a8dac170435e73 by Stefano Crocco. Committed on 28/11/2023 at 19:36. Pushed by stefanocrocco into branch 'master'. Delay loading of multiple tabs when restoring a session When a session is restored, only the visible tab should be load immediately. All other tabs are only loaded when they become active. M +1 -0 src/CMakeLists.txt M +12 -5 src/konqframe.cpp M +1 -1 src/konqframe.h M +9 -0 src/konqframevisitor.cpp M +4 -0 src/konqmainwindow.cpp M +5 -0 src/konqmainwindow.h M +139 -16 src/konqview.cpp M +64 -4 src/konqview.h M +60 -50 src/konqviewmanager.cpp M +9 -0 src/konqviewmanager.h A +60 -0 src/placeholderpart.cpp [License: GPL(v2.0+)] A +95 -0 src/placeholderpart.h [License: GPL(v2.0+)] M +1 -0 webenginepart/src/webenginepart_ext.cpp https://invent.kde.org/network/konqueror/-/commit/fef77006fecfb26941f38a7c82a8dac170435e73
This works great, thank you. However, it seems that now external links are opened in new windows besides the settings (and previous tabs are not restored if konqueror was not active). Could you please check this out?
(In reply to avlas from comment #3) > This works great, thank you. > > However, it seems that now external links are opened in new windows besides > the settings (and previous tabs are not restored if konqueror was not > active). Could you please check this out? I'll look into it in the weekend. Stefano
(In reply to avlas from comment #3) > This works great, thank you. > > However, it seems that now external links are opened in new windows besides > the settings (and previous tabs are not restored if konqueror was not > active). Could you please check this out? Regarding external links always being opened in a new window, could you please check whether the existing window was visible in all activities? I found a bug which caused windows visible in all activities to be ignored when checking whether to open a new tab or a new window. I created a merge request with a fix for this (https://invent.kde.org/network/konqueror/-/merge_requests/261). If the existing window wasn't visible in all activities, then I'll have to investigate further. As for the second issue, previous tabs are not restored if konqueror was not active, I don't understand what exactly you mean. Could you be a bit more detailed, please?
(In reply to Stefano Crocco from comment #5) > (In reply to avlas from comment #3) > > This works great, thank you. > > > > However, it seems that now external links are opened in new windows besides > > the settings (and previous tabs are not restored if konqueror was not > > active). Could you please check this out? > > Regarding external links always being opened in a new window, could you > please check whether the existing window was visible in all activities? I > found a bug which caused windows visible in all activities to be ignored > when checking whether to open a new tab or a new window. I created a merge > request with a fix for this > (https://invent.kde.org/network/konqueror/-/merge_requests/261). If the > existing window wasn't visible in all activities, then I'll have to > investigate further. Indeed, the window was visible in all activities and it worked when this was not the case. To test this, I changed that activity property and tried and it worked. However, after doing so I identified a new issue: after the new tab was open, the window had its visibility changed back from a specific activity to all activies again without me making that change manually. > As for the second issue, previous tabs are not restored if konqueror was not > active, I don't understand what exactly you mean. Could you be a bit more > detailed, please? Sure, imagine you have a window with some tabs and you close it. Then open an external URL. The expected behavior (when restore tabs is enabled) is that a window is opened with all previous tabs in the background plus the external URL in the foreground. Instead what I saw was just the external URL without the previous tabs in the background. Pressing "Shift + Ctrl + T" I could restore the previous tabs in a new window, so tabs were not lost, but still, I think the expected behavior should be that the new URL is a tab in addition to the other tabs as mentioned above. Thank you for your work, very appreciated!
(In reply to avlas from comment #6) > Sure, imagine you have a window with some tabs and you close it. Then open > an external URL. The expected behavior (when restore tabs is enabled) is > that a window is opened with all previous tabs in the background plus the > external URL in the foreground. Instead what I saw was just the external URL > without the previous tabs in the background. Pressing "Shift + Ctrl + T" I > could restore the previous tabs in a new window, so tabs were not lost, but > still, I think the expected behavior should be that the new URL is a tab in > addition to the other tabs as mentioned above. > > Thank you for your work, very appreciated! Are you sure of this? I couldn't reproduce the issue. Have you just turned on the restore tabs option? While trying to reproduce what you described, I noticed that Konqueror doesnt' save the session the first time you quit after having turned on that option (of course, this is a bug).
(In reply to Stefano Crocco from comment #7) > (In reply to avlas from comment #6) > > Sure, imagine you have a window with some tabs and you close it. Then open > > an external URL. The expected behavior (when restore tabs is enabled) is > > that a window is opened with all previous tabs in the background plus the > > external URL in the foreground. Instead what I saw was just the external URL > > without the previous tabs in the background. Pressing "Shift + Ctrl + T" I > > could restore the previous tabs in a new window, so tabs were not lost, but > > still, I think the expected behavior should be that the new URL is a tab in > > addition to the other tabs as mentioned above. > > > > Thank you for your work, very appreciated! > > Are you sure of this? I couldn't reproduce the issue. Have you just turned > on the restore tabs option? While trying to reproduce what you described, I > noticed that Konqueror doesnt' save the session the first time you quit > after having turned on that option (of course, this is a bug). you're right. I don't think this is an issue anymore