K
K
konstantin_a2018-12-17 13:41:53
Client side optimization
konstantin_a, 2018-12-17 13:41:53

How to quickly load images in Vue?

Hello
, I am making a component on vue js.
You need to upload pictures and specify the path as a variable.

<object type="image/svg+xml" v-bind:data="require(downloadBtnIcon)">
 </object>

Everything works Pictures are loaded, but it's very slow (although the size of the pictures is small)?
Is it possible to speed up the loading of images?
ps
webpack is used to build the project, and apparently fileloader is used to load images

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Klein Maximus, 2019-01-11
@kleinmaximus

https://github.com/oliverfindl/vue-svg-inline-loader

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question