I have a site built on HTML / CSS / JS / PHP / MySQL, and I'm trying to determine what consumes most of the operations related to loading my pages. Google Chrome timeline shows

and I wonder what are "Scripting" and "Idle"? With that said, what is "Painting"?
source share