comic | episodes & e-books | store | about
< previous post | next post > | all news from Aug. 2013 News archive | News search | RSS
 
  An amazing gallery of zero pixel imagesAug 20, 2013 2:07 AM PDT | url
 
Added 1 new A* page:Oof boy I need to get to bed. Got...*shudder*...social things to do the next couple of evenings, gonna have to manage to squeeze in A* pages around those, could be rough going. This is sort of an extraordinary collision of two periodic (roughly quarterly, and annually) hanging out things I've somehow failed to manage to avoid in my usual antisocial way, thus precipitating this crisis... Another such semblance of a life should not come along for quite some time though, probably! Whew.
 
Over the weekend I made a little hack to the comic viewer that makes your browser download the comic image for the *next* page (if there is one yet) while you're still reading the previous page, so when you advance to the next page, that comic image has probably already loaded up. Less waiting for pages to appear!
 
(^ This "precaching" is done by hiding the next comic image somewhere on the page, shrunk down to 1 pixel by 1 pixel. In theory you can hide it entirely using CSS ("display: none," or something), or by shrinking it to zero pixels by zero pixels, but I'm not sure either of those methods is foolproof--web searching reveals discussions saying some mobile browsers don't load images hidden with display:none, which would defeat the whole purpose of this "precaching," and although the zero x zero scaling idea that popped into my head *seemed* to work in the desktop and mobile browsers I tried, I couldn't find *any* discussion of such a hack anywhere on the internet, so I didn't feel I could trust it. There's also a fairly widely used Javascript method of precaching images, but eh that's Javascript. So anyway if you look closely you'll see a single pixel somewhere on the page (as long as it isn't the very last page, since in that case there's no next page to precache) that in these color pages at least alternates between various bright colors as you flip through the pages. Can you find it? Don't look at the page source code, that's cheating. : P)
 
 
 
 
·····
 
 
 
 
 
< previous post | next post > | all news from Aug. 2013 News archive | News search | RSS
 
© Copyright 2024 Ben Chamberlain. All rights reserved. | Privacy Policy