Live data from Hacker News

The Onion releases fartscroll.js

theonion.github.io

121–129 of 129 posts

Re: The Onion releases fartscroll.js

#124

Earlier quoted context omitted.

How did they convert the mp3/ogg into strings?

Base64 encoded. See: https://en.wikipedia.org/wiki/Data_URI_scheme

Love Base64 encoding... for anyone looking to optimize their CSS, check out Shaun Inman's CSS Cacheer... it can automatically inline images using that encoding: http://www.shauninman.com/archive/2008/05/30/check_out_css_c...

Sorry for slightly OT, but I really do love Base64...

Re: The Onion releases fartscroll.js

#125

Earlier quoted context omitted.

Base64 encoded. See: https://en.wikipedia.org/wiki/Data_URI_scheme

Love Base64 encoding... for anyone looking to optimize their CSS, check out Shaun Inman's CSS Cacheer... it can automatically inline images using that encoding: http://www.shauninman.com/archive/2008/05/30/check_out_css_c... Sorry for slightly OT, but I really do love Base64...

Or if you're on Rails, there's a little-known helper as part of the asset pipeline that will do this for you:

    #logo { background: url() }

Re: The Onion releases fartscroll.js

#126
post #96

Earlier quoted context omitted.

would you share how you did this? is it a greasemonkey script or some sort of add-in?

Oh sorry I missed all the questions/replies for this. I have my own firefox extension which I hacked up from an abandoned old firefox extension (called "soundextension" by Torisugari) not suitable for release, but there is a more modern extension here which does most of the same: https://addons.mozilla.org/en-US/firefox/addon/noise/ The click sounds I use are from old Windows 2000, I doubt XP/7/8 has them, NIMclick.w…

Anyone knows of a Chrome extension for the same thing? I searched, but couldn't find anything.

Re: The Onion releases fartscroll.js

#127
post #108

Earlier quoted context omitted.

Perhaps an MP3 => OGG JavaScript converter is in order.

In case it slipped right past your nose, the previous comments were a play-on-words in reference to the library.

I think he meant to say an MP3 => OGG JavaScript converter is an odor.

Re: The Onion releases fartscroll.js

#129

I originally read the link as "The Onion releases FASTscroll.js". I thought maybe there was a new high performance infinite scroll implementation. I was a little confused initially after clicking through.

me too. nothing happens when I put this code in my DocumentRoot and open example.html.
Post reply on HN