2 ms·
Since you're using jQuery, you might as well just use show() and hide() or remove().
by baddox 15y ago
Since you're using jQuery, you might as well just use show() and hide() or remove().
- th 15y agoAlso chaining: https://gist.github.com/1631368 https://gist.github.com/1631368
- baddox 15y agoI think that looks and scans worse. I didn't count characters, but it also seems like more characters. I bet it performs worse too (not that performance matters in this case).
- artursapek 15y agoAnd execute the first command just on $('div')
- WickyNilliams 15y agoor even better, use toggle(): jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle();