Re: [twitter-dev] jQuery being loaded multiple times using @anywhere
Hi Matt, At the moment there are 2 references to jQuery. We'd rather load in our own version of JQuery rather than detecting it in partner pages so we can be assured of the version we are running on top of. The reason its loaded twice is that it's used both on the client and on the server that exists in a hidden iframe. A large amount of users will have google's jQuery cached so it doesn't slow performance too much. That being said we will continue to tune @anywhere and removing external dependencies will be something we'll definitely be looking at. Thanks, Dan On Fri, Apr 16, 2010 at 8:49 AM, Matt m...@indielabs.com wrote: We've just implemented @anywhere's hovercard feature on our website and noticed that in addition to the initial loading of jQuery from Google which we were already doing, by including the Twitter script it loads jQuery 2 or 3 more times from Google. This should be fixed to only load jQuery once if it is not already detected. Here is the script we're using: script src=http://platform.twitter.com/anywhere.js? id=OURAPIKEYISHEREv=1/script script type=text/javascript twttr.anywhere(function(twitter) { twitter('.twitter a').hovercards({ infer: true }); }); /script -- Subscription settings: http://groups.google.com/group/twitter-development-talk/subscribe?hl=en -- Dan Webb Front-end Engineer, Web Client d...@twitter.com / @danwrong +1 415 425 5631
Re: [twitter-dev] jQuery being loaded multiple times using @anywhere
Is there an IRC channel for anywhere? Id love to chat with some folks about what Im experiencing in testing. On Fri, Apr 16, 2010 at 1:51 PM, Dan Webb d...@twitter.com wrote: Hi Matt, At the moment there are 2 references to jQuery. We'd rather load in our own version of JQuery rather than detecting it in partner pages so we can be assured of the version we are running on top of. The reason its loaded twice is that it's used both on the client and on the server that exists in a hidden iframe. A large amount of users will have google's jQuery cached so it doesn't slow performance too much. That being said we will continue to tune @anywhere and removing external dependencies will be something we'll definitely be looking at. Thanks, Dan On Fri, Apr 16, 2010 at 8:49 AM, Matt m...@indielabs.com wrote: We've just implemented @anywhere's hovercard feature on our website and noticed that in addition to the initial loading of jQuery from Google which we were already doing, by including the Twitter script it loads jQuery 2 or 3 more times from Google. This should be fixed to only load jQuery once if it is not already detected. Here is the script we're using: script src=http://platform.twitter.com/anywhere.js? id=OURAPIKEYISHEREv=1/script script type=text/javascript twttr.anywhere(function(twitter) { twitter('.twitter a').hovercards({ infer: true }); }); /script -- Subscription settings: http://groups.google.com/group/twitter-development-talk/subscribe?hl=en -- Dan Webb Front-end Engineer, Web Client d...@twitter.com / @danwrong +1 415 425 5631
Re: [twitter-dev] jQuery being loaded multiple times using @anywhere
There is the freenode #twitterapi channel. Abraham On Fri, Apr 16, 2010 at 15:06, Peter Denton petermden...@gmail.com wrote: Is there an IRC channel for anywhere? Id love to chat with some folks about what Im experiencing in testing. On Fri, Apr 16, 2010 at 1:51 PM, Dan Webb d...@twitter.com wrote: Hi Matt, At the moment there are 2 references to jQuery. We'd rather load in our own version of JQuery rather than detecting it in partner pages so we can be assured of the version we are running on top of. The reason its loaded twice is that it's used both on the client and on the server that exists in a hidden iframe. A large amount of users will have google's jQuery cached so it doesn't slow performance too much. That being said we will continue to tune @anywhere and removing external dependencies will be something we'll definitely be looking at. Thanks, Dan On Fri, Apr 16, 2010 at 8:49 AM, Matt m...@indielabs.com wrote: We've just implemented @anywhere's hovercard feature on our website and noticed that in addition to the initial loading of jQuery from Google which we were already doing, by including the Twitter script it loads jQuery 2 or 3 more times from Google. This should be fixed to only load jQuery once if it is not already detected. Here is the script we're using: script src=http://platform.twitter.com/anywhere.js? id=OURAPIKEYISHEREv=1/script script type=text/javascript twttr.anywhere(function(twitter) { twitter('.twitter a').hovercards({ infer: true }); }); /script -- Subscription settings: http://groups.google.com/group/twitter-development-talk/subscribe?hl=en -- Dan Webb Front-end Engineer, Web Client d...@twitter.com / @danwrong +1 415 425 5631 -- Abraham Williams | Developer for hire | http://abrah.am PoseurTech Labs | Projects | http://labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private.
Re: [twitter-dev] jQuery being loaded multiple times using @anywhere
On 04/16/2010 01:51 PM, Dan Webb wrote: Hi Matt, At the moment there are 2 references to jQuery. We'd rather load in our own version of JQuery rather than detecting it in partner pages so we can be assured of the version we are running on top of. The reason its loaded twice is that it's used both on the client and on the server that exists in a hidden iframe. A large amount of users will have google's jQuery cached so it doesn't slow performance too much. That being said we will continue to tune @anywhere and removing external dependencies will be something we'll definitely be looking at. Thanks, Dan Thanks to Twitter for @anywhere and a commitment to fast pages. Google now uses page load speed in its ranking algorithms, and I'm axing a bunch of slow WordPress plugins (including - wait for it - Google Analytics). ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky A mathematician is a device for turning coffee into theorems. ~ Paul Erdős -- Subscription settings: http://groups.google.com/group/twitter-development-talk/subscribe?hl=en
Re: [twitter-dev] jQuery being loaded multiple times using @anywhere
Have a look at the Google Analytics Asynchronous page: http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html Abraham 2010/4/16 M. Edward (Ed) Borasky zn...@comcast.net On 04/16/2010 01:51 PM, Dan Webb wrote: Hi Matt, At the moment there are 2 references to jQuery. We'd rather load in our own version of JQuery rather than detecting it in partner pages so we can be assured of the version we are running on top of. The reason its loaded twice is that it's used both on the client and on the server that exists in a hidden iframe. A large amount of users will have google's jQuery cached so it doesn't slow performance too much. That being said we will continue to tune @anywhere and removing external dependencies will be something we'll definitely be looking at. Thanks, Dan Thanks to Twitter for @anywhere and a commitment to fast pages. Google now uses page load speed in its ranking algorithms, and I'm axing a bunch of slow WordPress plugins (including - wait for it - Google Analytics). ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky A mathematician is a device for turning coffee into theorems. ~ Paul Erdős -- Subscription settings: http://groups.google.com/group/twitter-development-talk/subscribe?hl=en -- Abraham Williams | Developer for hire | http://abrah.am PoseurTech Labs | Projects | http://labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private.