Giter VIP home page Giter VIP logo

Comments (6)

focussing avatar focussing commented on September 25, 2024

Same for me!

from vue-image-lightbox.

sven-ra avatar sven-ra commented on September 25, 2024

I'm actually using it without vue-lazyload.
But I can't figure out how to add lazysizes to the lightbox?

from vue-image-lightbox.

hecktarzuli avatar hecktarzuli commented on September 25, 2024

@sven-ra, not sure how that's possible. vue-lazyload is in the package.json file as a production dependency, so you're using it.

It's imported in main.js right off the bat.. https://github.com/pexea12/vue-image-lightbox/blob/master/src/main.js

If you attempt to use lazysizes with this, you may have to resort to some trickery and/or hooks as I don't think this lib exposes the template via slots (I could be wrong)

from vue-image-lightbox.

sven-ra avatar sven-ra commented on September 25, 2024

Okay weird. In the Readme it states that I should install vue-lazyload myself and import it into my project. Which I am not doing at the moment. Anyways the lightbox works, but the images are not using lazyload. Even when I imported vue-lazyload.

from vue-image-lightbox.

hecktarzuli avatar hecktarzuli commented on September 25, 2024

I have a feeling I'm being dumb. main.js is for their example. I'm still 99% sure vue-lazyload will be in your node_modules but if you tree shake you're probably fine. As to why your stuff isn't working, sorry I can't help ya.

from vue-image-lightbox.

janosrusiczki avatar janosrusiczki commented on September 25, 2024

If anyone still cares I have removed this dependency in my fork / package.

from vue-image-lightbox.

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.