Skip to content

[QUESTION]: What is the execution order of page. evaluate and page JS? #1874

@xhc-code

Description

@xhc-code

Page(s)

Is page. evaluate executed when the JS on the webpage is idle? What if the JS execution of the page is guaranteed to be completed, and a global function or variable is defined based on the conditions to ensure that the script in page.exe can accurately obtain and execute the function in the future?

Description

Is page. evaluate executed when the JS on the webpage is idle? What if the JS execution of the page is guaranteed to be completed, and a global function or variable is defined based on the conditions to ensure that the script in page.exe can accurately obtain and execute the function in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions