Slow Loading of Forum
-
@Pesala I assume you've tested this in other browsers, and also in a clean profile?
What does devtools say in loading time? Anything specific taking a long time?
For me loading recent with Ctrl+F5:
Note that Recent will list recent in all categories unless they're set to Ignored. But I don't really notice much difference in a clean profile not logged in.
-
@Pesala I can’t reproduce this, tried on a clean profile.
-
No problem reproducing this with a Guest Profile.
- Opened a guest profile
- Opened this page
- Click on Recent which loaded quickly
- Opened a new tab and browsed on YouTube and BBC news for ten minutes or so
- Switched back to this tab and clicked on Recent again. It took about 11 seconds to load.
- Closed the guest profile and clicked on reply in this thread. Again, it took a while to respond and display the edit box.
Interesting that the load time is always the same, give or take. I display seconds on the Status Bar clock to do the timings.
-
@Pesala And what about other browsers? If it happens there as well, we can assume it's something on your system/network and not in Vivaldi.
I tried to leave the Recent tab open, read some news sites, watched a bit YT, maybe 15 mins. Then went back to the tab and clicked Recent to load it again.
Since this forum is very dynamic, all it does is make an XHR call to
https://forum.vivaldi.net/api/recent?_=1602276739960
Maybe your system has something blocking or delaying XHR calls?
It would help if you had Devtools open when reproducing and logging what happens in the Network tab.
-
@Pathduck I am unable to reproduce the issue in Firefox; only in Vivaldi Snapshot and Stable.
-
@Pesala
Hi, I try to verify your issue but cant.
Surfing other pages for some time, get back to this tab, reload with Ctrl+F5:I hate these errors, hard to catch.
CHeers, mib -
@mib2berlin This is the Network activity on clicking Recent after spending some time on YouTube.
-
@Pesala OK so 11s loading for the unread API call... what might be causing that?
And you're not even clicking Unread in that log right?
There's not even any calls to/api/recent?
in that log.Are you able to find the full URL of that request and try it manually?
Do you have a lot of entries in Unread? -
@Pathduck Maybe I click on Unread this time instead of Recent. There are seldom more than ten entries as I revisit and refresh the threads frequently.
It is only 11ms for the Unread call. The big delay of 10.23s is on manifest.json.
I wonder if custom.css is causing the issue? I added this code fairly recently:
/*Side Tabs Trashcan */ #tabs-container.left > .sync-and-trash-container {position: absolute; top: 0; bottom: 0; margin: auto 0; background: var(--colorBg); min-height: 62px; height: fit-content; align-content: center; left: 100%; padding-right: 4.5px; border-radius: 0px 30px 30px 0px; box-shadow: 3px 1px 3px #0002; } #tabs-container.right > .sync-and-trash-container {position: absolute; top: 0; bottom: 0; margin: auto 0; background: var(--colorBg); min-height: 62px; height: fit-content; align-content: center; right: 100%; padding-left: 4.5px; border-radius: 30px 0px 0px 30px; box-shadow: -3px 1px 3px #0002; } #tabs-container:is(.left, .right) > .sync-and-trash-container > .toggle-trash > button {height: 56px;} #tabs-container:is(.left, .right) > .sync-and-trash-container > .synced-tabs-button {order: 1; margin-top: -14px; padding-bottom: 10px;}
I deleted that for now, and will test again later.
-
@Pesala Well, if you've tested in a clean profile then custom CSS shouldn't make a difference.
And the request to
unread
clearly takes 10.57s from what I see in the log?Strange about the
manifest.json
above, it gives a status of 304 which basically tells the browser that it should use cache, but still it uses over 10s to get a very small file... but I assume this happened when you were in another tab so nothing you'd notice anyway.Does it perform all the requests in the log when you click the link or was all that logged during the 15m you were away? For me it only performs the XHR request to the API when clicking one of the top links.
You could also select the request and go to the Timings tab for more detail, it should look something like this:
-
@Pathduck I opened Developer Tools then click on the link.
Here is another Network Report after deleting that bit of CSS code, and clicking Recent this time.
I am out of my depth with this. I am not now using my default profile.
-
@Pesala said in Slow Loading of Forum:
I am out of my depth with this.
I think I am too at this point ... however now we know what is causing the delay. Only thing left is figuring out the why
Oh and a screenshot of the Timings would still help figure out where the delay occurs in the xhr requests.
-
@Pathduck Is this what you mean by the timings?
-
@Pesala Exactly, very good.
This shows that what's taking time is on connection start - Stalled. Not really sure what it means, but it's something happening before the request is sent to the server:
https://developers.google.com/web/tools/chrome-devtools/network/reference#timing
https://developers.google.com/web/tools/chrome-devtools/network/issues#queued-or-stalled-requestsThe request itself (sent+TTFB+download) is fast enough. So something might be causing requests to queue up before being sent. No idea what at the moment though...
Have you set any flags in Vivaldi? Not that it would matter for a new profile though...
-
Are you able to try from a different location / internet access point? Maybe your router or ISP is causing the connection to stall.
Does the issue occur on a different device attached to the same router?
-
@LonM No, I only have one device to test on, which is connected to my modem with an Ethernet cable.
The problem is relatively new, probably not many days before I started this thread on 4th September.
It could be caused by a Windows update or a Vivaldi update.
-
I made a fresh Standalone install of the Snapshot, but the problem is still there. On clicking the Recent link there is a stall of 2.84s.
-
@Pesala Really strange.
Does the Stalled time increase the longer you're away from the tab? Like your first examples were 10+ seconds.
You also said earlier:
I opened Developer Tools then click on the link.
Are you also getting all those extra requests for images and the .json files every time you click the Recent link? Because that should not happen, for me the only requests I get when clicking is two for
unread
andrep
.It might explain the Stalled request, as the docs for Stalled requests say there can only be six requests for a domain at a time.
-
@Pathduck There is no noticeable delay unless I do something else for a while.
-
@Pesala I understand, but does the time increase the longer you do "something else" ?