ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
114 stars 62 forks source link

FOUC and flickering #368

Open clecap opened 1 year ago

clecap commented 1 year ago

The skin shows flickering on navigation which is typical of FOUC (flash of unstyled content).

More particularly: The footer first shows in the middle of the page and then, after a short period of time, is pushed further down. It looks like the style sheet containing the relevant information for the footer position is loaded too late.

I see the effect on a 1.38.0 MediaWiki, build b135467, and a 4.1.0 Chameleon skin on a high-end workstation.

In the old, classical vector skin I do not have this problem.

I suspect that this is due to a problem with the MW resource loader, which often causes similar problems.

I further suspect that this is caused by the Bootstrap extension using the MW resource loader.

malberts commented 1 year ago

A few questions:

The footer first shows in the middle of the page and then, after a short period of time, is pushed further down.

Does this mean the page content is missing initially and then once it is styled the footer is pushed down? Or is the footer on top of the content initially?

clecap commented 1 year ago

I have not tried other combinations and therefore I have not noticed any additional situations.

I did not use any custom layout, SCCS, or CSS. I downloaded Mediawiki, installed it, installed chameleon via composer, had no other packages or extensions loaded, made a single page in addition to the main page, provided a one line text to this page, switched the user preference to chameleon skin and made the screen video I sent to you. In this sense, my situation is a minimal non-working situation.

One can see it quite nicely in the screen video.

At 0:04 the page Dab first renders correctly, then the footer moves up and immediately afterward moves down again.

The same effect can be seen at 0:08 with the Main Page. First the page is rendered correctly. Then the footer moves up and then down again.

At 0:10 you have that effect again with the page Dab.

I rechecked it once again and can reproduce the effect you see in the screen video.

clecap commented 1 year ago

I do not see the screen video attached here ?! WIll attach it to this message.

https://user-images.githubusercontent.com/7084049/204038757-d55e50b6-20a0-40a7-9deb-9821feae54b1.mov

It is helpful do download and play around with the slider of a video player. On the embedded player in github it is a bit difficult to see due to the resolution of the timeline.