mobileinit eventversion added: 1.0
Description: Event indicating that jQuery Mobile has finished loading.
jQuery( ".selector" ).on( "mobileinit", function( event ) { ... } )
This event is triggered after jQuery Mobile has finished loading, but before it has started enhancing the start page. Thus, handlers of this event have the opportunity to modify jQuery Mobile's global configuration options and all the widgets' default option values before they influence the library's behavior.
You must connect a handler to the mobileinit event before you load jQuery Mobile, because it is triggered as part of the library's loading process. The easiest way of achieving this is to place a script
tag after the script
tag that loads jQuery, and before the script
tag that loads jQuery Mobile:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|