Danbooru

All posts blacklisted

Posted under General

I've just noticed I get no thumbnails displayed on any post listing pages. It looks as if all were blacklisted, but there's no sidebar link to unhide them. I checked in the web inspector, and indeed all thumbnails get the "blacklisted" CSS class. Any ideas what caused that? It's a recent thing, it worked yesterday night.

EDIT: There are also several JS errors, including "Undefined identifier: $", which suggests a fuckup during Prototype import.

Updated by DschingisKhan

I haven't seen this particular bug, but I've noticed similar things happening in some of my Danbooru greasemonkey scripts. The cause seems to be an external script failing to fully load for whatever reason, which leads to errors in subsequent dependent scripts. Probably what happened was Danbooru's application.js was interrupted during download (maybe because the stop button was pressed at an inopportune time, or maybe from a random network hiccup), which broke all the javascript on the page, including the unblacklisting code. Clearing the cache and doing a hard refresh should fix it.

Actually, I've noticed it happening a lot recently. Not this particular failure mode, but JS code failing to load fully. It's intermittent, but sometimes it takes 3-4 tries to be able to load a post fully. It's rather annoying, and rather strange, as JS should be cached already most of the time.

EDIT: Oh, and for the record, whatever causes it, it's not timeouts. The loading process is fast, it just doesn't load everything.

Is it only javascript that fails to load, or do images also sometimes fail to load? Have you tested other browsers?

As for JS not always being cached, I've noticed this problem also. What's happening is that the server appends a modification timestamp to the URL for JS and CSS files, so that if the file is updated the URL will change and your browser will fetch the new version instead of using an outdated cached version. However, for reasons I don't understand the timestamp seems to periodically change even though the file hasn't really been modified, forcing the browser to redownload the file.

It seems to be JS only, I haven't really had any issues with downloading images ever since albert fixed the keepalive thing. I haven't tried in other browsers, either; it's hard to diagnose because it manifests itself as flukes that usually disappear after a reload.

Okay, I just encountered this problem too. For some reason application.js was truncated midway through, yet the server still returned a 200 OK response for it. Some quick googling tells me that nginx sometimes has problems serving large files if it doesn't have enough buffer space to gzip the response; increasing the size of the gzip buffers in nginx's config might help.

Okay, yeah, this is the problem I'm seeing in Firefox 3.5.3 but notably not in Chromium (4.0.223.5); thanks for pointing it out, evazion. Though rather than being intermittent, it seems to be pretty consistent. I'm tired right now, but I may dig a little deeper tomorrow sometime.

1