Infinite scroll with HTMX and async generators

Scroll down: as soon as the last row comes into view, HTMX fetches the next page from the server and puts it in its place.

The rows come from an async function*, which loads one page after another from a slow API and streams every row as soon as it is ready. Without JavaScript, the "Load more releases" link reloads the page with one more page. As the address is updated while scrolling, a reload keeps all releases loaded so far.

#ReleaseDatePage
1v10.9.01
2v10.8.01
3v10.7.01
4v10.6.01
5v10.5.01
6v10.4.01
7v10.3.01
8v10.2.01
9v10.1.01
10v10.0.01
11v9.9.02
12v9.8.02
13v9.7.02
14v9.6.02
15v9.5.02
16v9.4.02
17v9.3.02
18v9.2.02
19v9.1.02
20v9.0.02
21v8.9.03
22v8.8.03
23v8.7.03
24v8.6.03
25v8.5.03
26v8.4.03
27v8.3.03
28v8.2.03
29v8.1.03
30v8.0.03
31v7.9.04
32v7.8.04
33v7.7.04
34v7.6.04
35v7.5.04
36v7.4.04
37v7.3.04
38v7.2.04
39v7.1.04
40v7.0.04
41v6.9.05
42v6.8.05
43v6.7.05
44v6.6.05
45v6.5.05
46v6.4.05
47v6.3.05
48v6.2.05
49v6.1.05
50v6.0.05
51v5.9.06
52v5.8.06
53v5.7.06
54v5.6.06
55v5.5.06
56v5.4.06
57v5.3.06
58v5.2.06
59v5.1.06
60v5.0.06
61v4.9.07
62v4.8.07
63v4.7.07
64v4.6.07
65v4.5.07
66v4.4.07
67v4.3.07
68v4.2.07
69v4.1.07
70v4.0.07
71v3.9.08
72v3.8.08
73v3.7.08
74v3.6.08
75v3.5.08
76v3.4.08
77v3.3.08
78v3.2.08
79v3.1.08
80v3.0.08
81v2.9.09
82v2.8.09
83v2.7.09
84v2.6.09
85v2.5.09
86v2.4.09
87v2.3.09
88v2.2.09
89v2.1.09
90v2.0.09
91v1.9.010
92v1.8.010
93v1.7.010
94v1.6.010
95v1.5.010
96v1.4.010
97v1.3.010
98v1.2.010
99v1.1.010
100v1.0.010
You have reached the end: all 100 releases are loaded.