background preloader

Performance

Facebook Twitter

T-SQL Master: 20 dicas para criar melhores procedures. 20 Top jQuery tips & tricks for jQuery programmers. jQuery T. Following are few very useful jQuery Tips and Tricks for all jQuery developers. I am sharing these as I think they will be very useful to you. Disclaimer: I have not written all of the below code but have collected from various sources from Internet. 1. Optimize performance of complex selectors Query a subset of the DOM when using complex selectors drastically improves performance: 2. On the core jQuery function, specify the context parameter when. 3. Set an event handler for any element that matches a selector, even if it gets added to the DOM after the initial page load: This allows you to load content via ajax, or add them via javascript and have the event handlers get set up properly for those elements automatically.

Likewise, to stop the live event handling: These live event handlers have a few limitations compared to regular events, but they work great for the majority of cases. 4. The following is easier: 5. jQuery’s data() method is useful and not well known. 6. 7. 8. 9. 10. 11. 12. Memcached: a distributed memory object caching system. Memcache. Reinholdweber.com.