Comments:"HTML5 App on a Floppy Disk | Scrutineering - The Design & Technology of Poll Everywhere"
URL:http://tech.pollev.com/articles/html5-app-on-a-floppy/
Today I filed a bug report because the PollEv Mobile Presenter HTML5 mobile application isn't working properly from a floppy disk.
Ok, so the whole thing is a joke. Kind of. We sent the bug video above to each dev on the team in sequence like, “Hey, nobody else can seem to fix this, can you help?” There's actually some pretty cool stuff going on here. The app's CSS, JavaScript, image, and HTML files are completely self-contained on the floppy disk. When I open index.html to execute the app the browser reads these files from the floppy, evaluates the JavaScript, and communicates with the Rails API server via AJAX CORS requests.
The network inspector in Chrome shows that it takes a little under 40 seconds to load the app from the disk.
During that 40 seconds you can hear the “tsk tsk tsk tsk” noise of the floppy drive reading and see the browser screen is white. Suddenly the page loads. Reloading the page is almost instant since the assets are pulled from the browser cache.
Why did I bother putting an HTML5 app on a floppy disk? Believe it or not, there are practical benefits to building web apps that can work from a 1.44MB plastic-covered magnet:
Building apps this way makes them highly cachable. It''s trivial to deploy this app on a CDN. A mobile HTML5 app should probably never be over 1.44MB. If it doesn't fit on a floppy its probably too big. Bonus for fitting on an 8". Packaging an app for distribution on any file system makes it easier to embed in a native app wrapper, like Trigger, for distribution in app stores. Impresses hipsters.How did I do it? Follow @PollEvTech on Twitter to stay tuned for the next installment of this article and I'll show you how I tweaked Middleman to compile our app to a floppy disk.
We're hosting a Middleman meetup with Thomas Reynolds on May 16. If you want to talk to me about the future of floppy disks or Thomas about the direction of Middleman register for the event.
Oh, and if you're awesome with CoffeeScript you should apply for our CoffeeScripter position.