Commit 4ea5808
fix(jpip): give thumbnail priority over pending scroll drain
On fast local servers the fetch-decode cycle is short enough that
the user is still scrolling when it completes, setting pendingFetch
every cycle. Since pendingFetch was checked before thumbnailPending,
the thumbnail fetch was indefinitely deferred. On CDN-hosted servers
the 50-200ms network latency gives the user time to pause, breaking
the cycle — masking the bug in production.
Swap the priority: check thumbnailPending first. It fires once, adds
~50ms for the coarse overview, then the pending scroll drains normally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 48f4ae8 commit 4ea5808
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1494 | 1488 | | |
1495 | 1489 | | |
1496 | 1490 | | |
1497 | 1491 | | |
1498 | 1492 | | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
1499 | 1498 | | |
1500 | 1499 | | |
1501 | 1500 | | |
| |||
0 commit comments