Skip to main content

Premium.creative

This component is already setup in the main.js file of the boilerplates. It should contain the code for the specific creative.

The following are functions to declare rather than call.

Premium.creative.init​

Called when the library is loaded and ready.

Premium.creative = {
init: function () {
// main initial creative code here
},
};

Premium.creative.loaded​

Called when the library and the DOM content has loaded.

Premium.creative = {
loaded: function () {
// code to run after DOM load here
},
};

Premium.creative.removed​

Called when the containing panel iframe has been removed. Only for use in a temporary expanded/overlay panel.

Premium.creative = {
removed: function () {
// code to run after panel removed here
},
};