Gathering detailed insights and metrics for nuxt-render-on-scroll
Gathering detailed insights and metrics for nuxt-render-on-scroll
Gathering detailed insights and metrics for nuxt-render-on-scroll
Gathering detailed insights and metrics for nuxt-render-on-scroll
A Vue/Nuxt component that allows you to lazily render components only when they are scrolled into the viewport.
npm install nuxt-render-on-scroll
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (65.8%)
Vue (34.2%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
33 Commits
1 Forks
1 Watchers
14 Branches
1 Contributors
Updated on Apr 01, 2024
Latest Version
1.1.0
Package Id
nuxt-render-on-scroll@1.1.0
Unpacked Size
22.55 kB
Size
5.66 kB
File Count
7
NPM Version
7.15.1
Node Version
16.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
nuxt-render-on-scroll
- A Vue/Nuxt component that allows you to lazily render components only when they are scrolled into the viewport.
Based on the idea from vue-render-on-scroll
and adopted for SSR usage in Nuxt.js:
Adding v-if="false"
to the content of the component as long as the component is not in the current viewport or while in SSR mode.
Nevertheless, it should still be usable independent of Nuxt with stock Vue.
1yarn add nuxt-render-on-scroll 2# OR 3npm i nuxt-render-on-scroll
1import RenderOnScroll from 'nuxt-render-on-scroll' 2export default { 3 components: { 4 RenderOnScroll, 5 // ... 6 }, 7}
1<render-on-scroll> 2 <div>This content will be renderd only when it enters viewport</div> 3</render-on-scroll>
1<render-on-scroll :offset-y="100"> 2 <div>This content will already be rendered when scrolled 100px near it</div> 3</render-on-scroll>
1<render-on-scroll height="180px" :offset-y="-40"> 2 <div> 3 This content will only be rendered when at least 40px scrolled into the 4 180px high placeholder space 5 </div> 6</render-on-scroll>
A placeholder can also be shown before the scroll reaches the element. This will be usefull if you want to show something else while the component is rendering or if you are fetching asynchronous data from.
1<render-on-scroll> 2 <template #placeholder> 3 <div> 4 This content will be rendered before scroll reaches the main element. 5 </div> 6 </template> 7 <div>This content will be renderd only when it enters viewport</div> 8</render-on-scroll>
prop | type | default | comments |
---|---|---|---|
height | String | '' | CSS string for height property of the wrapping div. Useful to preserve the space while to content is not rendered yet. Can be used in combination with a negative value offsetY render only when scrolled into the content area, e.g., for large charts. |
offsetY | Number | 0 | Additional amount of pixel to be added on the content's bounds. E.g. value of 100 will render the content when scrolled within 100px near it. |
This project is based on vue-sfc-rollup
1git clone git@github.com:Michi-4G/nuxt-render-on-scroll.git 2cd nuxt-render-on-scroll
1npm install
1npm run serve
1npm run build
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More