mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-26 00:21:07 +00:00
chore: drop redundant comment on networkidle best-effort wait
This commit is contained in:
1 parent
0dc4643d03
commit
5c4d0393b4
1 file changed
-4
@@ -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