Skip to content

Commit

Permalink
add more details on how to tweak javascript output
Browse files Browse the repository at this point in the history
  • Loading branch information
julianuu committed Aug 22, 2023
1 parent 1af82ac commit 0c21a50
Showing 1 changed file with 5 additions and 3 deletions.
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
--------------------------------------------------------

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.
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

0 comments on commit 0c21a50

Please sign in to comment.