Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
How to cache images on site load with React.js

I have a dashboard, and on load it hits a database and gets a bunch of URLs, which are then rendered into IMG elements, like so:

<img src={Item.imageURL}/>

The issue is, that every time I open another route and then go back to the one with the images, the img components are being reloaded and the images are downloaded again. It results in icons visibly being loaded from top to bottom every time.

Is there a way to load these images the moment the URLs are retrieved from the database and then keep them in the cache, so that they will load immediately? Like I'd do import image from "./image.png" with local images.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!