
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
progressive-image.js
Advanced tools
demonstration | GitHub | npm | donate | @craigbuckler | craigbuckler.com
progressive-image.js implements a progressively-loaded image effect similar to those seen on Facebook and Medium. A very small blurred image is replaced with the full-resolution equivalent when the element is scrolled into view.
Please use the code as you wish. Tweet me @craigbuckler if you find it useful and consider donating toward development.
Benefits:
srcset and sizes attributes)View demonstration and full documentation...
Include the minified CSS and JavaScript anywhere in your page:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/progressive-image.js/dist/progressive-image.css">
<script src="https://cdn.jsdelivr.net/npm/progressive-image.js/dist/progressive-image.js" async></script>
or use npm and a bundler:
npm i progressive-image.js
Then add progressively-loaded images:
<a href="full.jpg" class="progressive replace">
<img src="tiny.jpg" class="preview" alt="image" />
</a>
where:
full.jpg is the large image.tiny.jpg is a small preview image - typically 20px width.Both images must have the same aspect ratio.
Refer to demo.html for full documentation, examples, options, and usage notes. It is also available as a CodePen demonstration page.
srcset images<head>pageshow event for Single Page Appsclass names applied to the preview are applied to the full image (except preview)FAQs
progressive lazy-loading image system
We found that progressive-image.js 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.