Love little snipplets that make your life better. This snipplet by @doublerebel on github, extends the .is() function in jQuery, so that if it’s used without parameters inside, will return if the DOM has been found on page Consider the following if($('#somediv').is()) { $('#somediv').ajax…. } else{ console.log('no ajax placeholder') } The script itself is pretty [...]
Author Archive
All you knew about javascript animation is wrong
December 6th, 2010
AltryneOk, atleast all I knew. And it’s in firefox, IE8 and Opera. But still… bare with me : A little history about browser rendering. The are 3 browser events that happen depending on stuff you change dynamically with JS in DOM. restyle – recalculation of style for affected DOM element. reflow – recalculation of flow [...]
Garbage collecting in IE with ajax heavy applicaitons
December 5th, 2010
AltryneWe have a very heavy Ajax application on one of our sites. It reloads block of html on the site every 5 seconds or every user click, so obviously it’s intense. I was approached by our QA and he told me that he’s computer freezes after some time the site is running. And I started [...]
RSS Feed
Twitter
Posted in
Tags: 