MozillaZine


nglayout.initialpaint.delay Doesn't Seem to Affect Rendering

User Help for Mozilla Firefox
JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted August 28th, 2022, 5:48 am

I used to set this to a higher value in ESR 91 and before (eg. 3000 or 4000 ms), so that I could allow more of a page to download prior to rendering. Now as of ESR 102, something seems to have changed, and items on a page load straight away. Now on some sites, the setting is respected and works, but on other sites, the page starts rendering immediately, before it has completely downloaded.

I have tried defeating lazy load for images in about:config. No visible change though. I find when I load the top level page of a site, the browser waits to render the page as desired. Any other links on the page though load immediately. even when it's cached, there's a "flash" and the page loads. Before on ESR 91, the screen would switch seamlessly.

https://flyers.smartcanucks.ca is the best example of an "offending" site. When you click on one of the grocery store icons on the right, the current flyers images start displaying right away while they are downloading. If I have the nnglayout.initialpaint.delay set to 4000, I shouldn't see anything for two seconds. And upon cached readings, I shouldn't see a blink and a quick display. I should see the page show up as quickly as possible, without blinking.

Also try msfn.org/board. The first page may load as desired, but go to the forum sub topics. They blink and start painting right away.

Now for contrast, here are a couple of sites that renders EXACTLY the way I want it to. On first load, the page, and all of the links load only when they are fully downloaded (as long as it's within four seconds), and upon revisiting a cached paged, it loads almost immediately, and with no "blink" or "flash". The first page doesn't clear before the next one loads. The pages just seamlessly switch.

http://www.thekingshighway.ca/
https://ryanvm.net/forum/index.php

I know, they're older sites, but these show what my objective is a bit more clearly.

Thanks for everyone's help.
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted September 3rd, 2022, 6:26 am

Wow! I'm surprised no one has any information on this. I spoke to folks on the Firefox subreddit, but they seem stumped.
Anyway, I'll await some information. I'm hopeful there may be an about:config pref I can change.
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

rebop
 
Posts: 34
Joined: February 1st, 2015, 2:47 pm

Post Posted September 25th, 2022, 6:13 am

Hi Jody,

Followed you posting in my thread on issues and lazy loading.

Best solution I have found is this addon. Just a handful of users worldwide biut sionce 102 I may not be able to live without it.
Worked fine at the defaulty 1500 ms. But I changes to 1000 and seems to be the sweetspot for me.

I experienced no issues with any of your links above. Will be curious to see what it does for you.

Https://Addons.Mozilla.Org/en-US/firefo ... uentially/

JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted September 25th, 2022, 10:27 am

It didn't quite address it. It does load the first page of a tab slower, but, the following links are loading as they download.
A very valiant attempt on your part though :D
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

therube

User avatar
 
Posts: 21288
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted September 27th, 2022, 11:16 am

nglayout.initialpaint.delay Doesn't Seem to Affect Rendering

Confirmed.
No clue whether it is still expected to have an effect or if it might just be a "stale" pref?
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

dickvl

User avatar
 
Posts: 53809
Joined: July 18th, 2005, 3:25 am

Post Posted September 27th, 2022, 3:02 pm


JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted October 3rd, 2022, 3:59 pm

dickvl wrote:https://searchfox.org/mozilla-release/source/layout/base/PresShell.cpp#1779


Sorry to be dim-witted. What is that code exactly?
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted October 19th, 2022, 2:54 pm

I just want to bump this thread, only to understand what that link in SearchFox was. I see that the code made some references to the pref, but what did that link mean?
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

siffemoz
 
Posts: 222
Joined: January 29th, 2016, 4:36 pm

Post Posted October 19th, 2022, 4:35 pm

JodyThornton wrote:I just want to bump this thread, only to understand what that link in SearchFox was. I see that the code made some references to the pref, but what did that link mean?


No idea really, but I voted for your bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1783718).

JodyThornton

User avatar
 
Posts: 150
Joined: August 12th, 2004, 5:59 pm
Location: Richmond Hill, Ontario (Canada)

Post Posted October 19th, 2022, 5:26 pm

siffemoz wrote:
JodyThornton wrote:I just want to bump this thread, only to understand what that link in SearchFox was. I see that the code made some references to the pref, but what did that link mean?


No idea really, but I voted for your bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1783718).


Why thank you :)
Cheers,
Jody Thornton
(Richmond Hill, Ontario)

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 5 guests