Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.