Last 12 weeks · 0 commits
4 of 6 standards met
The description says that it is "Simple module". And people use it (over 2kk installations). They think that it's simple _and good_ one, but in fact it's simple _and slow_ one. But there is no any note about it. A lot of people do not check the code of modules that they install, they expect that the creator spent time to investigate the problem to create the best decision, but it is not about this repo. The word "simple" is not the correct description, but "simple and naive", or "simple and slow" are. Using this code in the browser leads to a performance hit. It's a fact. For some cases the impact is significant. For example: https://github.com/Stuk/jszip/issues/617 Here is the example of using of _the properly created_ : https://jphpsf.github.io/setImmediate-shim-demo/ 296ms () vs 12617ms ( === your implementation**) Node.js has . Using your implementation in the browser is the same thing as using , but with the misleading name.
Repository: sindresorhus/set-immediate-shim. Description: Simple `setImmediate` shim Stars: 29, Forks: 7. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.0.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, andineck.