Puppeteer Painting
Calculate a Page's First Paint Time with Puppeteer. In this lesson we are going to use the firstPaintTime metric from chrome's load times, as well as the navigation start from the W3C window metrics, to calculate how long it takes a page to paint. We will set up a quick function and test it out. A puppet is an object, often resembling a human, animal or mythical figure, that is animated or manipulated by a person called a Puppeteer.The Puppeteer uses movements of his hands, arms, or control devices such as rods or strings to move the body, head, limbs, and in some cases the mouth and eyes of the puppet.
Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
NASA/JPL-Caltech/ASI/Cornellare liquid-filled canyons on Titan, NASA said in a statement.2. Scientists discover Earth-like planet orbiting star closest to the sunAn Earth-sized planet orbiting the star nearest our sun could have conditions similar to those on Earth, according to a study published in August.The planet, called Proxima b, lies in the 'habitable zone,' where liquid water is possible. While researchers have identified a plethora of planets outside our solar system that both resemble Earth in size and dwell in the “habitable zone,” no other Earth-like planet outside our solar system is as close to humans and their observatories as this new world, making it the best possible hunting ground for living organisms.So, when will we know if the planet harbors life? Amazing discoveries tv. NASA's Cassini finds liquid-filled canyons on Saturn's moon TitanThe Grand Canyon has some cosmic competition.Saturn's largest moon, Titan, is home to massive canyons flooded with liquid hydrocarbons, according to a study published in August.Researchers analyzed 2013 data from NASA’s Cassini Spacecraft to determine that dark channels branching out from Titan’s Ligeia Mar sea are filled with liquid, the study said. The research marks the first time scientists have evidence there.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Feb 10, 2019
In the chrome devtool, there is an option in 'rendering' called 'paint flashing', once enabled it allows you to see the area that is painted with highlighted greenbox. Is it possible to expose the painted area/dom/element via puppeteer as frame/page event? it would be very useful for analysing the performance and remotely syncing the graphic. |
commented Feb 10, 2019 •
After some investigations, it turns out chrome devtool protocol doesn't expose the detailed information about which dom element triggers the paint (all it requires to highlight the painting area is a call to Trace.setShowPaint, the highlighting is done in chrome side, with no detailed info be sent to inspector). So i guess there isn't much can be done by puppeteer here. |
