loadletter / 4chan-x

Fork of 4chan X 2.x
MIT License
44 stars 8 forks source link

[FF 50.0] Image preview background #83

Open friendlyanon opened 7 years ago

friendlyanon commented 7 years ago

I'd like to point out first that I'm not exactly using your fork of v2 4chanX, but my own, however, the code for ImageHover is the same in both. Recently changed to FF 50.0 e10s and I'm seeing some images suddenly have white background while loading, which is quite annoying when browsing with a dark theme such as Tomorrow.

Expected result: (example shown in image)

Expected result

Occasional result: (example shown in image)

Occasional result

I've uploaded my version of 4chanX here in case it helps.

loadletter commented 7 years ago

I've played around with it and it seems like it only happens sometimes when you hover, move out and hover again before the image finishes loading. Tried changing the code to hide (both display:none and visibility:hidden) and unhide the image instead of creating/deleting the element every time but it still happens. I guess the only solution is looking at what ccd0's imagehover is doing, or maybe creating a test page to check if it's a firefox bug.