HTMX was snapshotting the post-JS mutated home DOM into history; on back-navigation it restored the stale snapshot then re-ran the inline script, appending cards that were already present. Fix by: - hx-history="false" on the home root div so HTMX never caches the mutated DOM - clearing #continue-reading-grid before each script run as a defensive guard