I’ve build an Android app in Phonegap and jQuery Mobile and now I want to optimize it, so it will run smoother. I have few performance questions:
-
What is best use of click event handling (for perforamance)
$('#someID').on('click', function()); $('#someID').click(function()); $('#someID').on('vclick', function()); -
Is there binded pageshow event, so I wouldn’t have to do it with live?
$('#somePageId').pageshow(function())instead of
$('#somePageId').on('pageshow', function()) -
Any other tips for better performance will be very helpful. Thank you very much.
1 Answer