
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
cm-ngx-video-lazyloader
Advanced tools
`cm-ngx-video-lazyloader` is an Angular library for lazy loading videos using IntersectionObserver.
cm-ngx-video-lazyloader
is an Angular library for lazy loading videos using IntersectionObserver.
npm install --save cm-ngx-video-lazyloader
CmNgxVideoLazyloaderModule
into your root module.lazyLoadVideo
directive to the video tag.data-src
attribute instead of src
attribute. The url will be dynamically assinged to the src
attribute when the video is in viewport.<video lazyLoadVideo class="card-video" loop autoplay muted id="1" poster="https://example.org/assets/Americas-poster.jpg">
<source data-src="https://example.org/assets/Americas.mp4" type="video/mp4" />
Browser not supported
</video>
If you wish to lazy load the poster as well, then you can pass in an optional input param [lazyLoadPoster]="true"
in the video tag and place the poster url inside the data-poster
attribute. This attribute is set as false
by default.
<video lazyLoadVideo [lazyLoadPoster]="true" data-poster="https://example.org/...></video>
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
FAQs
`cm-ngx-video-lazyloader` is an Angular library for lazy loading videos using IntersectionObserver.
The npm package cm-ngx-video-lazyloader receives a total of 0 weekly downloads. As such, cm-ngx-video-lazyloader popularity was classified as not popular.
We found that cm-ngx-video-lazyloader 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.