Scheduling non-essential work yourself is very difficult to do. It’s impossible to figure out exactly how much frame time remains because after requestAnimationFrame callbacks execute there are style calculations, layout, paint, and other browser internals that need to run. A home-rolled solution can’t account for any of those. In order to be sure that a user isn’t interacting in some way you would also need to attach listeners to every kind of interaction event (scroll, touch, click), even if you don’t need them for functionality, just so that you can be absolutely sure that the user isn’t interacting. The browser, on the other hand, knows exactly how much time is available at the end of the frame, and if the user is interacting, and so through requestIdleCallback we gain an API that allows us to make use of any spare time in the most efficient way possible.
angular idle requestidlecallback scheduling angularclass tipe angular-idle angular-idle-preload angular2-idle-preload @angularclass/idle-preload angular-preload-routes preload-routes preload request-idle-callback angular-2-requestidlecallback angular2 tipe.io angular2modules angular-class angularclassmodules tipemodules:fast_forward: Angular 2 (and Angular 4) Bootloader for async script tag and hmr support via @AngularClass
angularclass hmr-support async-tag angular2 angular angular4 angular-bootloader angular-2-bootloader angular-async-tag angular-2-async-scripts angular2modules angular-class angularclassmodulesthis is assuming you have corresponding files next to the component. You may overwrite the selector at anytime by providing one. If the selector and the component file name does not match then the corresponding css/template file with the selector will be injected.
angular2 webpack angularjs loader angular2-loader angular2-conventions-loader angularclass angularclassmodules
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.