
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
js-infinite-scroller
Advanced tools
yarn // or npm install
npm run dev demo // 查看demo
import InfiniteScroller from 'dom-collection'
const feedList = document.querySelector('feed选择器');
let ContentSource = function(){};
ContentSource.prototype.fetch = function(){}; // 获取数据的方法
ContentSource.prototype.render = function(item, divObj){}; // 渲染模板的方法,组件会回传当前需要渲染的节点数据和可能存在的可以重用的DOM节点
let feedListConfig = {
listMarginTop: 0, //列表距离body顶部的距离,不传则组件自己计算
runwayItems: 10, // 当前滚动方向需 保留/提前加载 的节点数,默认为10,此数据必须 >=0
runwayItemsOpposite: 10, // 当前滚动反方向需保留的节点数,默认为10
reusingSelector: 'selector' // 如果需要DOM重用,则必须提供此选择器,且在获取到的数据节点里第一层必须有对应的字段,用以识别当前回收的DOM类型,以便重用。
}
let feedList = new InfiniteScroller(feedList, new ContentSource(), feedListConfig);
__InfiniteScrollerIndex属性,标识在数组中的位置,以便外部调用FAQs
dom回收+无限滚动
The npm package js-infinite-scroller receives a total of 0 weekly downloads. As such, js-infinite-scroller popularity was classified as not popular.
We found that js-infinite-scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.