Hello.
To speed up my app, I want to add:
code
$(document).bind("mobileinit", function() { $.mobile.buttonMarkup.hoverDelay = 0
});
/code
I see that Appery currently declares code for mobileinit:
code
<script type="text/javascript" src="files/resources/lib/jquery/jquery-1.8.2.js">
</script>
<script type="text/javascript">
$(document).bind("mobileinit", function()
{
if (navigator.userAgent.indexOf("Android") != -1)
{
$.mobile.defaultPageTransition = 'none';
$.mobile.defaultDialogTransition = 'none';
}
});
</script>
<script type="text/javascript" src="files/resources/lib/jquerymobile/1.3.0/jquery.mobile-1.3.0.js">
</script>
/code
But if I add that code to a JS, Appery adds it after jquery.mobile-1.3.0.js, and it has to be between jquery-1.8.2.js and jquery.mobile-1.3.0.js (as Appery currently does).
For the moment, I download the project, edit it, and compile it, but for not doing it everytime, how can I add code to the mobileinit?
Thanks,
Andrés.