JavaScript app runs in a single thread. This means if there is a long-running resource-intensive operation – the thread will be blocked and the page will stay frozen until operation completes. Obviously, this is not user-friendly and such behavior should be avoided. We can use Web Workers, through Web Workers we could run long-running operations in separate threads, without blocking the main thread. Code running in Web Worker doesn’t have access to UI DOM, this means logic coded in Web Worker should operate with logic which is not directly related to UI. Sample app contains commented code in dashboard.js. This code blocks main thread for 10 seconds, if you uncomment it – you will see that app becomes frozen for 10 seconds: Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Meetups
Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic