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

Possible to use together with progressive-img? #26

Closed
joakimglaving opened this issue Oct 9, 2017 · 1 comment
Closed

Possible to use together with progressive-img? #26

joakimglaving opened this issue Oct 9, 2017 · 1 comment

Comments

@joakimglaving
Copy link

My images are quite large, so I would like to load them progressively. So I found this https://github.com/MatteoGabriele/vue-progressive-image , but the problem is that it requires you change the img tag to progressive-img, thus breaks the v-img, giving an error saying: v-img element missing src parameter.

Is there any way to get this working?

Regards,

@fahrenq
Copy link
Contributor

fahrenq commented Oct 9, 2017

Hello!

Unfortunately, I didn't test plugin with custom components yet.
Probably the problem in this line, because components don't behave as normal nodes.

As a workaround, which is pretty dirty, I can advice you to use src directive option:

<progressive-img v-img="{ src: 'src-to-display-in-gallery' }" src="...">

But it still might not work. Need testing. I've created separate issue for this feature - #27, you will see updates and discussions there.

Thank you very much for feature suggestion!
If you don't mind I'll close this issue, feel free to reopen this or create new in case of any questions.

@fahrenq fahrenq closed this as completed Oct 9, 2017
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

2 participants