News for hackers. Stuff that matters.
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by ars on Friday August 17, 2012 @12:56AM (#4395128)
Loading their demo linked from the word "on" froze my browser for about 20 seconds. Scrolling the page afterward was horrible, very jerky and laggy.

I have noscript installed, but all scripts on that page were allowed.

Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by brokenparser on Friday August 17, 2012 @07:39AM (#4395875)
+1, count me unimpressed.

Off:

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    
    Script: https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js:4
On:

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

    Script: http://airbnb.github.com/infinity/infinity.js:154
Firefox 14.0.1 without NoScript, Linux 3.4.0.
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by gilini on Friday August 17, 2012 @09:26AM (#4396199)
Same here, but I wouldn't expect much from a jQuery plugin that implements "infinite scroll". Like I need stuff to start loading by itself whenever I reach the bottom of the page.

Also, looking at their code, the first thing I laid eyes on was this statement:

  var infinity = window.infinity = {};
Which, in this context, would be the exact same as

  var infinity = {};
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by brown9-2 on Friday August 17, 2012 @11:23AM (#4396803)
I believe they are doing that to override any functions/objects already bound to window.infinity from other plugins/scripts. Look at the infinity.noConflict() function at the bottom of the source, which seems to be inspired by the jQuery.noConflict().
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by gilini on Wednesday August 29, 2012 @12:37PM (#4449465)
It doesn't matter. Both snippets do the exact same thing, except the first has two attributions, the second just one.