Is it common practice to use JavaScript libraries in an MRAID Ad?
I'm looking to implement a magazine-style “page-turning” user interface for an MRAID Ad on mobile only.
I can see from the documentation that jQuery is mentioned, however I'm not sure if this would be too heavy to load, worth calling a CDN (it'd probably be cached):
Using 3rd party library bindings without using their ready event method Third party libraries such as jQuery have a ready method which help facilitate a similar functionality as the mraid ready event listener. In the example of jQuery, putting the DOM click bindings inside of the ready(handler) method makes sure that the entire page has finished loading before starting execution of any other jQuery functions.
You can use jQuery, but if you want to manipulate the DOM, you have to check if the document is ready and also if mraid is ready. From the same document: