-
tomman
your daily JavaScript breakage of the day:
animenewsnetwork.com
-
tomman
since a few days ago, the page is coming up without actual contents, only headers, sidebars, footers, and of course, ads
-
tomman
but... the contents are there!
-
tomman
just hidden
-
tomman
look for DIVs with class "mainfeed-day" - many of their childrens have display: none set
-
tomman
(either H2 tags explicitely hidden with display: none; or any DIV with classes "herald box is-filtered" where the display: none is actually declared on .herald.box.is-filtered)
-
tomman
BUT!
-
tomman
those display:none are being set via JS, not on the actual HTML/CSS served by the server!
-
tomman
no JS errors are seen on console, however
-
tomman
the is-filtered class is being set programmatically by whatever hellstew of JS framework they're serving, but why?
-
tomman
Oh, don't bother clicking the "load more" button - it will request more contents over AJAX... but they will get hidden too on load :/
-
tomman
the sidebar contents seems to be mostly gone too
-
tomman
-
tomman
aside of jQuery, something named "hammer.js" and svg4everybody, a surprisingly light dependency list
-
tomman
no JavaScript errors are logged, so I suspect that it could not be Chromeisms this time
-
tomman
or rather, some undefined behavior?
-
njsg
oooh css-hidden
-
njsg
those are my favourite, I guess
-
njsg
as expected, for js-driven hiding, I see content :-D
-
njsg
photos, that's different, though
-
njsg
but yeah, I'd guess some error somewhere in the ecmascript code that might eventually lead to unhiding
-
njsg
tomman: hm, any page should show the issue?
-
njsg
I can't reproduce
-
» njsg goes try adding ja to accept-content
-
njsg
still can't reproduce (and yes, I'm testing with js enabled)
-
Myckel
Here I get: no-js: images not shown and with js: images shown. It only seems to be the images though.
-
frg_Away
-
frg_Away
test profile seems fine. Latest and greatest 2.53.12b1 pre
-
tomman
njsg: it only affects the homepage, it seems
-
tomman
only the headlines are missing
-
tomman
and some items on the sidebar
-
tomman
huh, on a private tab it renders fine!?
-
tomman
OK... let me trying clearing cookies
-
tomman
cleared cookies did nothelp
-
tomman
but clearing local storage did
-
njsg
hm, that's bad, they need to create another storage level so that stuff isn't so easy to delete
-
tomman
something got corrupted somehow on animenewsnetwork.com local storage stuff, weird
-
tomman
no, my HDD isn't dying (well, not THIS one, yet!)
-
tomman
maybe cosmic radiation flipped a bit in RAM that got persisted?
-
njsg
as far as it's only cosmic... with the fighting in the zone of alienation and seismic activity near Fukushima...
-
tomman
well, if nukes start flipping bits on my HDD platters, I think I would have much bigger fish to fry than just random corrupted data...
-
tomman
even backups won't save us this time