mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 06:10:14 +01:00
chore: drop redundant comment on networkidle best-effort wait
This commit is contained in:
@@ -118,10 +118,6 @@ async def read_item(request: LinkRequest, dep: BrowserDep) -> LinkResponse:
|
||||
status = HTTPStatus.OK
|
||||
logger.debug("Challenge solved successfully.")
|
||||
else:
|
||||
# Best-effort: some sites keep background connections open
|
||||
# (analytics beacons, websockets, ...), so ``networkidle`` may
|
||||
# never settle. The page is fully usable once ``domcontentloaded``
|
||||
# has fired, so log and continue instead of failing the request.
|
||||
try:
|
||||
await dep.page.wait_for_load_state(
|
||||
"networkidle", timeout=timer.remaining() * 1000
|
||||
|
||||
Reference in New Issue
Block a user