Created
June 26, 2012 08:09
-
-
Save Rockncoder/2994302 to your computer and use it in GitHub Desktop.
PhoneGap + JQM Performance Tip #2: Cache jQuery Selectors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $paperTape = $("#paperTape"), | |
$li = $("#paperTape li"), | |
$sum = $("#sum"), | |
height = parseInt($li.css("height"),10), | |
top = RocknCoder.Dimensions.top, | |
getTop = function(){ | |
return top; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment