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().
I have noscript installed, but all scripts on that page were allowed.