

GitHub - GoogleChromeLabs/idlize: Helper classes and methods for implementing th...
source link: https://github.com/GoogleChromeLabs/idlize
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Idlize
Helper classes and methods make it easier for developers to implement the idle-until-urgent pattern and leverage the requestIdleCallback()
API.
Installation
You can install this library from npm by running:
npm install -D idlize
Usage
This library is a collection of helper methods and classes (not a single bundle). As such, each helper should be imported separately. All public helpers are released at the level of the project, so they can be imported by directly referencing the helper's .mjs
file.
import {defineIdleProperty} from 'idlize/defineIdleProperty.mjs' import {defineIdleProperties} from 'idlize/defineIdleProperties.mjs' import {cIC, rIC} from 'idlize/idle-callback-polyfills.mjs' import {IdleQueue} from 'idlize/IdleQueue.mjs' import {IdleValue} from 'idlize/IdleValue.mjs'
Refer to each helper's documentation for examples and API usage details:
defineIdleProperty.mjs
defineIdleProperties.mjs
idle-callback-polyfills.mjs
IdleQueue.mjs
IdleValue.mjs
Browser Support
This code has been tested and known to work in all major browsers as well as Internet Explorer back to version 9.
License
Recommend
-
92
Note: The tasklets proposal spawned the Comlink library. It’s an RPC library that extracts the ergonomics feature from tasklets. Problem Mos...
-
109
clooney - Clooney is an actor library for the web.
-
65
README.md size-plugin
-
83
README.md
-
60
README.md This project was bootstrapped with Create React App. Below you will find so...
-
3
Catalog Data Collection This document details how the API catalog data are collected from each browser version. These data are the input for computing
-
10
Private methods and getter/setters for JavaScript classes Daniel Ehrenberg Stage 3 Keeping state and behavior private to a class lets library authors present a clear, stab...
-
12
Using Windows Runtime interop methods from C++/WinRT: Some helper functions
-
8
MATLAB Helper ® Quiz Contest – Mar’20This is an MCQ based online quiz on Numerical Methods with MATLAB. Participation in the online quiz is completely free and you can attempt the quiz multi...
-
9
Tailwind HelperConvert and visualize your tailwind classesTailwindhelper assists you in styling with tailwindcss. You can visualize tailwind settings, converts your values i...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK