I have seen posts here and there of people talking about significant differences between slightly different ways of doing the same thing. I have a div with (e.g.) 20 children, but of which 15 are hidden from the overflow.
What I already do successfully (amen jquery simplicity) is the following:
function spin() {
window.setInterval(function() {
// take last child of #container and prepend it to the same with a slideDown effect so that all other elements shift down all nice and smooth
So my question is simple: is there a more efficient way of doing this? I can see I am using twice a selector which contains "#container". I only know the basics of jQuery (which already does/helps a lot hehe) but my instinct tells me using twice the same selector is waste of cpu cycles.