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

How to wait for animation canvas iframe to be fully loaded?

New Here ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

Hello.

 

I was wondering what would be the best way to await the load of iframe?

I want to dynamically attach some event listeners to drawn canvas elements but the thing is that canvas is not drawn immediately..

 

I have added setTimeout function to wait for a second. But this is not great too because if user will be on slow network it won't work as expected.

 

Maybe someone have idea what could be done in my case?

TOPICS
Code , How to , Other

Views

161

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2020 Nov 07, 2020

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines