tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues

more 0.1.0: <pebble-more>, a feed's "load more" link that loads the next page in place

The link stays the no-JS path. With JS, when it comes within 600px of
the viewport (IntersectionObserver) or is activated, the element fetches
its href with Accept: text/html and X-Fragment: 1, appends the children
of the answer's [data-feed-items] to the page's list (the for attribute's
id, else the previous sibling), and takes the answer's
pebble-more a[data-more] as its next link; an answer without one ends the
feed. One fetch at a time; a failure shows the link again and only a
click retries. Each load is announced politely ("{n} more", the page's
words via the announce attribute); at the end the host stays, empty but
for that live region, so the last announcement is heard. The URL is left
alone.

The smoke loads the first page through a real IntersectionObserver and
the second by a click: under --dump-dom's virtual time Chromium renders
about one frame in all, and observers deliver only on frames.

5728 B gz (Δ floor 1708), budget 6600.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 sem. · b6d09d1df3d8971285f93b499b061323dad38309

Parents 25a7d20

13 fichiers modifiés, 644 ajouts, 1 suppressions