You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
Use the new streaming api when sending a request to get a doc. Use together
with TextDecoder. Stream until <head is found. Then cancel the response. Then
recreate a full html string (append ></html>), then parse that for link
tags.
This avoids the need to download the whole document. I do not think accuracy
decreases too much (e.g. fake in a js comment or something is rare).
Maybe I can avoid parsing and just search raw text for link tags, the accuracy
loss may be ok given the speed boost
Use the new streaming api when sending a request to get a doc. Use together
with TextDecoder. Stream until <head is found. Then cancel the response. Then
recreate a full html string (append ></html>), then parse that for link
tags.
This avoids the need to download the whole document. I do not think accuracy
decreases too much (e.g. fake in a js comment or something is rare).
Maybe I can avoid parsing and just search raw text for link tags, the accuracy
loss may be ok given the speed boost
Research notes on streaming fetch responses:
The text was updated successfully, but these errors were encountered: