• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Background not rendering for HTML canvas in browser

Community Beginner ,
Mar 17, 2020 Mar 17, 2020

Copy link to clipboard

Copied

My interactive figure for a website has a background that does not load along with the rest of the figure when the website is loaded the first time. When refreshing, the background loads as normal. The strange thing is that this suddenly started happening with the latest version, whereas previous versions have worked perfectly without this issue.

Some posts on other forums suggested the issue is that the background image is not initiated before the canvas is loaded. I'm not great with HTML, hence why I use Animate,  so I can't find any clues in the code that relates to this. The image used for the background is "MasterfigurKlima2050_20150318". Link for the code (HTML with JS included): https://pastebin.com/qcKV1fK6

 

Any advice would be much appreciated!