Skip to content

DefaultJavaScriptExecutor running even if WebClient has javascript disabled #65

Description

@cdalexndr

On WebClient I set the following option, but the executor still starts:
webClient.getOptions().setJavaScriptEnabled( false )
The DefaultJavaScriptExecutor runs a loop with Thread.sleep(10ms) that has impact on performance.
The executor should use other mechanisms instead of the costly loop with Thread.sleep to wake when there are jobs pending.

Note that this executor has top usage in my java profiler's hot spots.

htmlunit-2.36.0-SNAPSHOT

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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