Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

onload event not fired on resources? #11721

Closed
tleunen opened this issue Oct 30, 2013 · 1 comment
Closed

onload event not fired on resources? #11721

tleunen opened this issue Oct 30, 2013 · 1 comment

Comments

@tleunen
Copy link

tleunen commented Oct 30, 2013

Hi,

I'm trying to use PhantomJS in a website who uses Javascript to dynamically add resources in the page, such as Javascript and CSS files, and wait for them to be loaded before doing something else.

So the website uses onload on the resource. But the event is never fired using PhantomJS.

Do I need to manually fired the event for every resources I load (catching it with page.onResourceReceived ?)

@tleunen
Copy link
Author

tleunen commented Nov 13, 2013

I noticed the onload event was not sent on older version of webkit (noticed that in Safari 5.1.7).
Knowing this, this is not a bug of Phantom so I close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant