ts1 / flipbook-vue

3D page flip effect for Vue.js
https://ts1.github.io/flipbook-vue/
614 stars 158 forks source link

2 Get request sent even though singlePage prop is used #64

Closed seonWKim closed 1 year ago

seonWKim commented 2 years ago

it sends 2 Get requests to the server when I flip to the next page image

my code is <flip-book class="flipbook" :pages="pages" v-slot="flipbook" ref="flipbook" singlePage>

seonWKim commented 2 years ago

this behavior sends duplicate requests for the same image whenever I flip to next page. Btw I love "flipbook-vue", it's so wonderful

ts1 commented 2 years ago

I guess the second one is the prefetch. This component prefetches the images for the smooth user experience. You may see the same image is fetched multiple times (prefetch and real img), but it should be served from browser's cache, so that should not be a problem.