Changeset b1512e0 in Klonkt for src/services/EmbedResolver.js
- Timestamp:
- 07/28/2026 08:54:20 AM (6 weeks ago)
- Branches:
- main
- Children:
- bdb78e4
- Parents:
- 3f32994
- File:
-
- 1 edited
-
src/services/EmbedResolver.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/EmbedResolver.js
r3f32994 rb1512e0 231 231 // the full string every read turns a 1MB page into quadratic work. 232 232 const window = tail + chunk; 233 if (len >= MAX_HEAD || /<\/head>/i.test(window) || /og:image/i.test(window)) done_ = true; 233 // Stop on the real <meta property="og:image">, not on the bare string. 234 // Big sites carry "og:image" inside inline JSON long before the actual 235 // tag, and stopping there cut the page off just short of the meta block: 236 // the same near-miss as the old size cap, with a different cause. 237 if (len >= MAX_HEAD || /<\/head>/i.test(window) || /<meta[^>]{0,300}og:image/i.test(window)) done_ = true; 234 238 tail = chunk.slice(-512); 235 239 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)