I'm sitting on a plugin which needs to initate some things before the Jquery Mobile mobileinit
event fires (overriding some JQM functionalities)
I don't really want to split up my plugin into two separate files, having to place one before Jquery-mobile.js. So I'm looking for events preceding mobileinit
I'm currently trying with DOMContentLoaded
, but this is not really working.
My question:
Are there any events that precede mobileinit
? Can I fire this event from a .js file sitting AFTER jquery mobile.js?
Thanks for input!
EDIT: I开发者_如何学C'm trying in JSBin
no, mobileinit is the first event fired. see line number 6632 of jquery mobile RC1. You can fire your own event from some js file before jquery mobile. and do stuff there. But you cant fire this event from a .js file sitting AFTER jquery mobile.js.
精彩评论