Jump to content

Prestashop And Banner In Createjs


solisarg

Recommended Posts

This is a notice for those working with banners using canvas and createJS library. If you use an anonymous function with a listener to the page onLoad .... take into account that due to the TPL system and the high fragmentation of every page part, Javascript callbacks could be a mess (at some point I get 'body doesn't exist' error) So be sure to which event you attach the canvas initialization, add a delay if neccesary (via a setTimeout) to initialize the whole banner to check if it works or not. Not ideal, but at least you know it works. Then, research to which reliable event you need to attach your initialization

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...