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

125
Views
Vue-native lazy-loading images

I'm at school trying to learn Vue-Native to build an Imgur-like app using imgur API.

I am testing my calls with an on-press function :

 async get() {
      const res = await axios
        .get('https://api.imgur.com/3/gallery/hot/time/1?showViral=true&mature=false&album_previews=false',
 { headers: { 'Authorization': 'Client-ID myclientid' } })
      this.images = res.data
    }

and have a v-for loop to get images from response

<image v-for="image in images" :key="image.id"
            :style="{height: 300, width: 300}"
            :source="{uri: `https://i.imgur.com/${image.cover}.jpg`  }"/>

When I slice the res.data I have no loading problems, but if I don't my app tries to load everything at the same time and get very laggy.

I tried the loading="lazy" inside the image but didn't work as vue-native image components are a bit different

Does someone have a solution ? thanks

about 4 years ago · Juan Pablo Isaza
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!