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

98
Views
how to preload assets so that they don't shift when inserted to the DOM

on this live preview at the bottom of the page where is the select list "fav sport" the background changes according to the sport selected but the background takes time to load which causes a white color to show up for some time
How can I preload images so that white color-shifting doesn't appear
here's the file link in the repo

PS: I'm really sorry for how poorly the code was written but it was back then when I was still seeing if programming is for me or not
feel free to include the script, styles in the markup file so that you don't get a headache by the project bad structure
I'd be really thankful for anyone helping, thx in advance

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

For newer browser you could use

<link rel="prefetch" href="YOUR_IMAGE.jpg" />
about 4 years ago · Juan Pablo Isaza Report
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!