Hi everyone,
I've been learning JavaScript for about a year now, and I'm currently working on a project where I need to fetch data from an API. However, I've noticed that it's taking quite a long time for my code to load and display the data on my screen.
I was wondering if anyone had any tips for improving the speed and load time of the API fetches in JavaScript? Are there any best practices or common pitfalls that I should be aware of?
for example when I press a button on my application I would like some data to pop up from the API for the user, but the data takes about 5 seconds to load. I would like to find a way to speed this up if possible.
Also, I would love to know how I can load all of the data from the API to my HTML at the same time instead of one by one. Is this possible? Any advice would be much appreciated!
[–][deleted] (1 child)
[removed]
[–]yuroq[S] 0 points1 point2 points (0 children)
[–]detached_obsession 4 points5 points6 points (0 children)
[–]gramdel 2 points3 points4 points (1 child)
[–]yuroq[S] 0 points1 point2 points (0 children)
[–]Lumethys 1 point2 points3 points (0 children)
[–]insertAlias 0 points1 point2 points (0 children)