JavaScrips Tipsjavascrips tips
Posted 18 June 2013 - 04:09 PM
Use cascade and avoid code repetition. Make use of the heritance, and use the same properties set for multiple elements.
2. Use IDÃ¢â‚¬â„¢s whenever possible
IDs are fast. You can use alternatives other than jQuery to select your tags, such as document.body .
3. Keep your selectors simple and short
If you donÃ¢â‚¬â„¢t need it donÃ¢â‚¬â„¢t use it.
4. avoid time consuming operations
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users