Async Modules Supporting ES5 & ES6 with Control Flow

12 views
Skip to first unread message

Ibrahim Tanyalcin

unread,
Feb 19, 2018, 3:53:31 PM2/19/18
to d3...@googlegroups.com
I have devised this module pattern for the browser for a project I have been working on. It allows you to pause/resume browser execution of inline/dynamic async script tags. The concept is to combine promises and requestAnimationFrame and fallback to rAF on older browsers.

Especially when you are rendering independent dashboards etc, you can use this to load your dependencies/css/links , wait arbitrarily and then resume etc:

http://taskq.ibrahimtanyalcin.com/

Any feedback is appreciated,

Thanks.

Ibrahim Tanyalcin PhD
Reply all
Reply to author
Forward
0 new messages