function ready() { // Your app-specific script here } $(document).ready(ready); $(document).on("page:load", ready);