Stack jQuery events on elements to avoid delays.

While building a bit of code for phlodl.com jQuery was acting up when adding a simple mouseover to expand and the event was delayed when the mouse entered the element. To fix this I daisy-chained the events on the element to fix the delays:

Delayed animation:

$('.feature').mouseenter( function() {
$(this).animate({
height: 540
}, 'fast', function() {});
});

$('.feature').mouseleave( function() {
$(this).animate({
height: 300
}, 'fast', function() {});
});

Seamless:

$('.feature').mouseenter( function() {
$(this).animate({
height: 540
}, 'fast', function() {});
}).mouseleave( function() {
$(this).animate({
height: 300
}, 'fast', function() {});
});

Hourly noting, really?

Over the past 2 years I’ve become obsessed with noting, every hour of every day. Why? The original reason was meditative. I was trying to see my thoughts and track them from day-to-day. That idea failed pretty badly since words are terrible at communicating thoughts, well my thoughts anyway. What has succeeded though is looking back at how time is spent and understanding if my ideas and plans take place as conceive of. Continue reading Hourly noting, really?