3 Replies Latest reply on Jun 13, 2016 4:40 AM by mercedesc43970157

    Load the canvas before the rest of the content on a site?


      I made a little game with Animate CC and I exported as canvas.

      Everything works pretty well, but the game is the last thing that loads when I'm testing online, in the context of my website.

      First load the styles, images, adsense advertising, everything, and finally the canvas game, although it is in the beginning of the body.


      As I was reading it may be that the html default "<body onload="init();" might be guilty.

      Is this "onload" telling that the init() have to wait until the rest of the page is loaded?

      In that case, it can be changed?


      (I'm very very new in javascript! )