Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-rect

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-rect - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "async-rect",
"version": "1.0.0",
"description": "Async version of getBoundingClientRect(), using IntersectionObserver",
"version": "1.0.1",
"description": "DEPRECATED - do not use",
"main": "dist/async-rect.cjs.js",

@@ -6,0 +6,0 @@ "module": "dist/async-rect.es.js",

@@ -0,1 +1,8 @@

DEPRECATION NOTICE
=====
This library was built on faulty assumptions. You are better off calling `getBoundingClientRect()` inside of `requestAnimationFrame()`, which has essentially the same effect while avoiding the cost of creating an IntersectionObserver, as [this benchmark](https://bl.ocks.org/nolanlawson/daa6100518e00f9354e04a6a6b09926e) demonstrates.
Original documentation follows.
async-rect [![Build Status](https://travis-ci.org/nolanlawson/async-rect.svg?branch=master)](https://travis-ci.org/nolanlawson/async-rect)

@@ -60,2 +67,2 @@ ====

npm test
npm test
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc