Monday, 7 October 2013

how to improve javascript perfomance

Leave a Comment
hello guys!!

we need to follow some step and get bit more fast make our website with any platform

1) first of all,  remove all of duplicate instance inside of application i.e if declare  var i = 0 then doesn't repeat again
2) write return false when function will closed if not need to go ahead within function
3) declare only once of selector for any control in javascript  i.e var txt = document.getElementById('txtid')

after then need to use txt variable in whole application

0 comments:

Post a Comment