ccd0 / 4chan-x

Adds various features to anonymous imageboards.
https://www.4chan-x.net/
Other
973 stars 132 forks source link

4chan X CSS loading briefly before Oneechan CSS change on Chromium browsers #1318

Open Morphello opened 7 years ago

Morphello commented 7 years ago

On Chromium based browsers (tested with Chrome and Vivaldi), using 4chan X and Oneechan or StyleChan will cause 4chan X's CSS to load briefly before each page load.

Gif demonstrating clicking on the same link 3 times to refresh the page

This effect doesn't appear if 4chan X is disabled and another style is applied 4chan.

It seems as if the page starts to load 4chan X's CSS changes and then suddenly starts loading the applied style over it.

Could not find information regarding it. Issue isn't present in Firefox. Can't move from Firefox to Chrome or Vivaldi because 4chan blinds me every reload.

Browser: Vivaldi 1.7, Chrome (latest) Extension: Tampermonkey Script: 4chan X 1.13.8.4, OneeChan 5.6.1, StyleChan 1.0.14 OS: Windows

saxamaphone69 commented 7 years ago

Technically, I would say this is an issue with Oneechan/StyleChan, as those userscripts rely on 4chan X loading first before they themselves run.

I have a similar "issue" with my userscript, where I have to wait for 4chan X to load before I can remove the CSS it inserts.

Short of requesting an option for 4chan X to not load its CSS, or perhaps firing an event when 4chan X CSS is loaded/MutationObserver, I'm not too sure what can be done.

My personal remedy is having a class added to the document while 4chan X loads, :root.side-loading body { display: none; }-esque, but that is something that may have to be sorted out on Oneechan/StyleChan's side.