Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any hints on how we can implement lazy loading for image? #13

Open
rohit-gh opened this issue Dec 18, 2020 · 0 comments
Open

Any hints on how we can implement lazy loading for image? #13

rohit-gh opened this issue Dec 18, 2020 · 0 comments

Comments

@rohit-gh
Copy link

rohit-gh commented Dec 18, 2020

since lazy loading is enabled since Chrome 76 and related browsers as seen here
How can we enabled this feature using this library.

Currently I'm trying to put the loading="lazy" in the image slot.

<vue-load-image>
        <img slot="image"
             key="primary"
             :src="image.src"
             loading="lazy"
             :alt="image.alt"/>
        <div slot="preloader" class="loading-image-wrapper">
          <img slot="preloader" class="loading-image"
               :src="loaderImage"/>
        </div>
        <div slot="error" class="image-loading-error">
          <error-image></error-image>
        </div>
      </vue-load-image>
@rohit-gh rohit-gh changed the title Any leads to how we can implement lazy loading for image? Any hints on how we can implement lazy loading for image? Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant