Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History API support #6

Open
user451421541757324 opened this issue Jan 31, 2025 · 0 comments
Open

History API support #6

user451421541757324 opened this issue Jan 31, 2025 · 0 comments

Comments

@user451421541757324
Copy link

Let me start by saying that I really love your project, great potential concentrated in a hundred lines of code: impressive! The open source world should take an example from minimalist projects like yours (for the curious, Mini Van is another great project with a similar philosophy).

Praise aside, I think the only thing fixi.js is missing is support for the History API so you can build a full Single Page App.

Specifically, there are three missing features:

  • changing the document title: it's already nice the way htmx does it using <title>New title</title>, so you could use the same approach
  • when navigating back and forth in the history
    • remember the position of the page (scroll x, y)
    • cache of the HTML code (ideally not the whole page, but just the altered content) so you don't redo unnecessary requests

If looking for ideas, there is a minimalist implementation of htmx that already supports the History API: they don't look like big additions, so fixi.js's size wouldn't increase by too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant