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

Lazy loading does not work with dynamic image URLs #93

Open
2 tasks done
altrusl opened this issue Jul 14, 2023 · 2 comments
Open
2 tasks done

Lazy loading does not work with dynamic image URLs #93

altrusl opened this issue Jul 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@altrusl
Copy link

altrusl commented Jul 14, 2023

Checks

Version

0.6.12

Description

When i use dynamic images in Vue 3 / Vite project

<Splide :options="spliderOptions" aria-label="Providers">
    <SplideSlide v-for="provider in casinoStore.providers.value" :key="provider.id">
      <div class="provider" :title="provider.name" @click="filterByProvider(provider)">
        <img
          :data-splide-lazy="`/assets/images/providers/${provider.slug}.png`"
          class="image"
        >
      </div>
    </SplideSlide>
  </Splide>

all data-splide-lazy attributes are converted to src on the mount

With

data-splide-lazy="/assets/images/providers/someImg.png"

lazy-loading works fine

Reproduction Link

No response

Steps to Reproduce

  1. Use the code abouve with binding of image url's...

Expected Behaviour

Lazy loading should work with binded data-splide-lazy attribute

@altrusl altrusl added the bug Something isn't working label Jul 14, 2023
@Salotronic
Copy link

same here....

@Salotronic
Copy link

I think this bug is important, because causes to forze the browser to load ALL big images of the gallery at same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants