You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like some times the throttle() (sizeIFrameThrottled()) prevents init event.
When the init event was fired, the sizeIFrameThrottled() postpone the event firing process. During the waiting time, if some other event occurred, the initial init event was skipped. As a consequence, initCallback won't be called.
Steps
load frame from the main page
load iframreResizer.contentWindow.js in the frame
modify content as soon as possible (In the test case below, I just put style tag on the bottom of the document.)
the main page receives iFrameResizer0:136:300:mutationObserver event instead of init
It seems like some times the
throttle()
(sizeIFrameThrottled()
) preventsinit
event.When the
init
event was fired, thesizeIFrameThrottled()
postpone the event firing process. During the waiting time, if some other event occurred, the initialinit
event was skipped. As a consequence, initCallback won't be called.Steps
iFrameResizer0:136:300:mutationObserver
event instead ofinit
I made a quick test case to reproduce the bag. http://shared.senta.me.s3-website-us-east-1.amazonaws.com/iframe-resizer-000/
My environment
Thanks,
The text was updated successfully, but these errors were encountered: