sindresorhus

sleep-synchronously

Block the main thread for a given amount of time

by sindresorhus

JavaScript

JavaScript79.2%
TypeScript20.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
jimmywarting
CorrectionsClosedIssue

It does not work in the browser. Well, it can work in browsers, but not in the main thread. Web Workers can still use this... but it also requires that you add some few response headers, so it could be a good idea to link to: Security requirement

jimmywarting · 3y ago
Richienb

May be worth mentioning in the readme the changes in Chrome 91+ which enforce much stronger cross-site security which makes unavailable. https://github.com/tc39/ecma262/issues/1435

Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/sleep-synchronously. Description: Block the main thread for a given amount of time Stars: 130, Forks: 7. Primary language: JavaScript. Languages: JavaScript (79.2%), TypeScript (20.8%). License: MIT. Latest release: v2.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb.