Giter VIP home page Giter VIP logo

Comments (6)

Suven avatar Suven commented on May 24, 2024 4

For the meantime, if you don't care too much about backwards-compability (which for me is fine.. because missing lazy-loading is not breaking the site. Having lazyloading is a progressive enhancement to me) you can just add :lazy="false" loading="lazy" as props to the component-call.

That said, I really would love to see that this component moves from a custom lazy-loading to the native one. The main argument to me really is SEO as crawlers (and also stuff like facebook) would not be able to see the images in the current implementation.

from image.

AndrewBogdanovTSS avatar AndrewBogdanovTSS commented on May 24, 2024 2

@Suven yeah, it would be great to see this component become the new Nuxt standard for using images, similar to how Next deprecates standard img tag in favor of https://nextjs.org/docs/api-reference/next/image

from image.

danielroe avatar danielroe commented on May 24, 2024 2

We do not plan to support a polyfill for loading=lazy as this is now broadly supported: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading#browser_compatibility.

You can of course always add your own polyfill...

from image.

AndrewBogdanovTSS avatar AndrewBogdanovTSS commented on May 24, 2024 2

@danielroe sometimes it just requires to wait for 4 years to resolve the issue, right? 😂

from image.

AndrewBogdanovTSS avatar AndrewBogdanovTSS commented on May 24, 2024

To me this polyfill looks strange since it requires generation of noscript which has known SSR issues vuejs/vue#8996 . I think it's better to do something similar to what is done in vanilla-lazyload - it uses native lazy load and falls back to IntersectionObserver if native is not supported

from image.

danielroe avatar danielroe commented on May 24, 2024

I guess! Though in reality this probably could have been closed with the release of v1.

from image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.