Question: Is there any extra sense in wrapping your JavaScript into an $(function(){}); as opposed to using a vanilla IIFE? I guess no, or?
Replying to @derSchepp
@derSchepp `$(fn)` waits for the DOM to be ready and thus avoids http://mths.be/ieoa in old IE. http://www.slideshare.net/mathiasbynens/how-dry-impacts-javascript-performance-faster-javascript-execution-for-the-lazy-developer/67 …
5:11 AM - 18 Jul 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.