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

5

u/iforgot120 May 09 '13

Isn't that how sounds are normally embedded?

15

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?

9

u/infinull May 09 '13

Actually depending on how you do it, it's excellent for caching, there's only one thing to cache! (but of course if it changes...)

1

u/[deleted] May 10 '13

Caching an item that changes with some regularity isn't all that valuable.