Giter Club home page Giter Club logo

Comments (5)

AwesomeDevin avatar AwesomeDevin commented on July 29, 2024

可以让图片资源尽量小点吧,压缩一下,因为需要获取图片属性,图片过大会影响体验,占位图的话,可以试试条件渲染,你可以针对图片做个预加载,预加载完成的图片才展示。

from vue-waterfall2.

smalike avatar smalike commented on July 29, 2024

怎么给占位设置高宽呢?我是想在图片加载的时候占位撑起页面。可是现在看组件,貌似是图片加载完才显示到页面上。

from vue-waterfall2.

AwesomeDevin avatar AwesomeDevin commented on July 29, 2024

怎么给占位设置高宽呢?我是想在图片加载的时候占位撑起页面。可是现在看组件,貌似是图片加载完才显示到页面上。

宽度是可以设置的,高度没法设置,是自适应的,这个组件的优点就是支持宽高、自适应,不需要设置图片宽高

from vue-waterfall2.

smalike avatar smalike commented on July 29, 2024

不设置图片宽高最大的问题就是要等到图片加载完页面的元素才能显示出来,这样会很慢。某个图片一旦超时那就是灾难性的。

from vue-waterfall2.

AwesomeDevin avatar AwesomeDevin commented on July 29, 2024

不设置图片宽高最大的问题就是要等到图片加载完页面的元素才能显示出来,这样会很慢。某个图片一旦超时那就是灾难性的。

超时的话,这个item就不会被展示,正常情况下是不会超时的,超时了的话就是资源的问题了

from vue-waterfall2.

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.