Socket
Socket
Sign inDemoInstall

img-fast

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    img-fast

non-REST loader


Version published
Weekly downloads
1
Maintainers
1
Install size
11.4 MB
Created
Weekly downloads
 

Readme

Source

img-fast

Work in progress

img-fast is a framwork-agnostic typescript ES6 web component meant to load images nicer (and faster). The goals are:

  • Quickly get info (dimensions, thumbnail, etc.) by range requesting the first few kilobytes of all images on page.
  • Make SVG-placeholder with correct proportions
  • Prioritize full size downloads with intersection-observer (lazy load)
  • Where possible load the EXIF-thumbnail of jpeg's as placeholder
  • Support multiple server side resolutions (to rerender higher quality stepwise)
  • Public hooks (observables) to react to stages of image loads (e.g. start some other AJAX-request after lo-res has loaded)

So far the only dependencies are ts-exif-parser and rxjs

Example page

(work in progress) https://wiegell.github.io/img-fast/

FAQs

Last updated on 07 Jun 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc