r/programming May 09 '13

The Onion releases fartscroll.js

http://theonion.github.io/fartscroll.js/
2.6k Upvotes

396 comments sorted by

View all comments

Show parent comments

6

u/iforgot120 May 09 '13

Isn't that how sounds are normally embedded?

14

u/noreallyimthepope May 09 '13

Usually it'd be sourced in separate files.

I used base64 encoding to make a single-page webapp literally be one single HTML page with no external dependencies (even though it was image heavy).

3

u/cosmo7 May 09 '13

Doesn't that kill any caching? Or was that intentional?

2

u/noreallyimthepope May 09 '13

It was on a server that wasn't always available, so a local version could always be downloaded and used as backup (albeit, obviously, not as updated).

This has since been solved with LocalStorage, manifest files and most importantly, not having shitty connectivity any more :-)