Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more details on how to tweak javascript output #766

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,15 @@ To set the ``lynx`` output width to 400 characters, use this filter setup:
width: 400


Configuring how long browser jobs wait for pages to load
Tweaking JavaScript output
--------------------------------------------------------
Comment on lines -322 to 323
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the title of that section was better before


For browser jobs, you can configure how long the headless browser will wait
Browser jobs might sometimes fail to produce the desired results when loading websites that contain JavaScript.
If JavaScript refuses to run you may try setting ``useragent`` to the user agent of the current version of a commonly used web browser.
thp marked this conversation as resolved.
Show resolved Hide resolved
You can configure how long the headless browser will wait
before a page is considered loaded by using the ``wait_until`` option.

It can take one of four values (see `wait_until docs`_ of Playwright):
The option ``wait_until`` can take one of four values (see `wait_until docs`_ of Playwright):

- ``load`` - consider operation to be finished when the load event is fired
- ``domcontentloaded`` - consider operation to be finished when the
Expand Down
Loading