{"library":"resize-observer-polyfill","type":"library","category":null,"description":"This package provides a robust polyfill for the W3C Resize Observer API, enabling consistent functionality across web browsers, including those without native support. Currently at stable version 1.5.1, the library maintains an active development pace, primarily focusing on bug fixes and minor enhancements, as evidenced by recent releases like 1.5.1 and 1.5.0. Its core strength lies in its non-polling observation strategy, which leverages MutationObserver with Mutation Events as a fallback, ensuring efficient performance without constant DOM checks. It differentiates itself by accurately following the Resize Observer specification, handling CSS transitions/animations, and observing changes from dynamic CSS pseudo-classes without modifying observed elements. The polyfill is lightweight, weighing only 2.44 KiB minified and gzipped, and is designed to be used as a ponyfill to prevent global object pollution.","language":"javascript","status":"active","version":"1.5.1","tags":["javascript","ResizeObserver","resize","observer","util","client","browser","polyfill","ponyfill","typescript"],"install":[{"cmd":"npm install resize-observer-polyfill","imports":["import ResizeObserver from 'resize-observer-polyfill';","const { default: ResizeObserver } = require('resize-observer-polyfill');"]},{"cmd":"yarn add resize-observer-polyfill","imports":[]},{"cmd":"pnpm add resize-observer-polyfill","imports":[]}],"homepage":null,"github":"https://github.com/que-etc/resize-observer-polyfill","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/resize-observer-polyfill","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/resize-observer-polyfill/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}