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 loading causing velopark theme to be slow #2321

Open
thibaultmol opened this issue Jan 1, 2025 · 3 comments
Open

History loading causing velopark theme to be slow #2321

thibaultmol opened this issue Jan 1, 2025 · 3 comments
Labels
bug Something isn't working Themes A new theme idea or improvement to an already existing theme

Comments

@thibaultmol
Copy link
Collaborator

If you check the network tab in devtools while opening a node of velopark, it seems to load a bunch of history calls from the osm api before even requesting the velopark api. Why is this?

@thibaultmol thibaultmol added bug Something isn't working Themes A new theme idea or improvement to an already existing theme labels Jan 1, 2025
@thibaultmol
Copy link
Collaborator Author

This is especially problematic in busy regions like Brussels and on lower performing hardware

@pietervdvn
Copy link
Owner

Is it "https://api.openstreetmap.org/api/0.6/user/preferences/mapcomplete-places-history" which is loaded?

This is the cloud sync of which places you've visited last. This is limited in number of remebered items (which should result in about 4 calls)

You can disable this in the settings.

@thibaultmol
Copy link
Collaborator Author

I noticed like many dozens of calls to it while Luna was editing velopark. every time she opened a new velopark node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Themes A new theme idea or improvement to an already existing theme
Projects
None yet
Development

No branches or pull requests

2 participants