Lazy loading images how

后端 未结 6 682
时光说笑
时光说笑 2020-12-05 20:47

I am developing an eshop .At products page based on category i putted some javascript based filtering. However a problem arises if a category has a lot of products. This lin

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 21:20

    I'm fairly certain it's not possible in plain HTML without some kind of Javascript intervention.

    After all, if it was possible to do it without scriping, why would anyone have implemented it in Javascript in the first place?

    My question is: How many visitors do you get who these days don't have Javascript enabled? I bet it's very few. And in any case, those people are used to sites not being fully functional when they have javascript disabled; your site will actually be better than most if the only difference they have to put up with is slower loading speed.

    (ps - I presume you're using Jquery's LazyLoad plugin for the Javascript enabled people?)

提交回复
热议问题