Browser rendering optimisation (Udacity course)
Posted on May 15, 2016
Browser rendering optimisation
course - link
So here is, actually, the first post in this blog. And I decided to make it quite small, just a few impressions about the course from Google, that I have completed recently.
The course itself is quite small, but is full of interesting live examples and gives you a nice overview of how browser rendering works. This course gives you a good insight on how you can use Chrome dev tools to find bottlenecks in your frontend apps. And gives you a lot of info on how to make your app running at 60 fps. Shortly speaking, it will be useful for everyone who writes any frontend CSS/javascript code.
Some course insights
Here are some main thoughts that I have after finishing the last course exercise:
- Use composite layers for creating smooth and almost zero cost animations.
- Move CPU bound tasks to Web workers. Seriously, why not to use them?
- There is no reason to use setInterval during animations, except you, are supporting old(as dirt) browsers. Use requestAnimationFrame instead.
- Avoid forced synchronous layout calculation.
- Performance matters.