GithubHelp home page GithubHelp logo

Comments (3)

matocool avatar matocool commented on August 23, 2024

现在很多网页都是按需加载,尤其是 视频网站 这种网页比较长的网页。

向下拉的时候才会读取网页内容。 如果能提前在后台不断的请求读取,那么向下滚动网页的时候就会很丝滑,很顺 没有卡顿的感觉。

图1 是 打开优酷之后没有向下滚动

图2 是 打开优酷之后完全向下滚动完毕

如果我们需要向下滚动,就会出现读取网页内容从而产生延迟时间。体验肯定不如完全预读。

855a04805f9e3a4ca7b3eb10609ee315_t013db2d3e9e2e90cc5
78959852ac0934f420fa40a1642c8746_t01ead7d71b541b63b7

from instantpage.

syhyz1990 avatar syhyz1990 commented on August 23, 2024

这个做不到,下滑加载一般是JS代码里控制的。预读取只支持超链接

from instantpage.

matocool avatar matocool commented on August 23, 2024

谢谢大佬

from instantpage.

Related Issues (16)

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.