News for hackers. Stuff that matters.
Re:CSS and JS code coverage in Chrome DevTools by laurencei on Wednesday July 12, 2017 @08:59AM (#14752091)
My vague recollection of the Google event where this was first announced (was it late 2016 or early 2017?) - was it was going to "record" your site usage for as long as you were "recording" - and give the report at the end.

But this now sounds like a coverage tool for a single page?

Does anyone know if it can record over multiple pages and/or application usage (such as an SPA)?

Re:CSS and JS code coverage in Chrome DevTools by cshenoy on Wednesday July 12, 2017 @09:25AM (#14752284)
There's a record button in the Coverage tab - the solid filled circle. Allows you to record over multiple pages (either a SPA or normal site).
Re:CSS and JS code coverage in Chrome DevTools by TekMol on Wednesday July 12, 2017 @09:26AM (#14752292)
It looks like it does that. But the results are only for the last page.

I tried it by triggering function A on page 1 and function B on page 2.

The report showed function A as not used.

Re:CSS and JS code coverage in Chrome DevTools by laurencei on Wednesday July 12, 2017 @10:09AM (#14752612)
I wonder if it is a bug perhaps?
Re:CSS and JS code coverage in Chrome DevTools by rockostrich on Wednesday July 12, 2017 @09:23AM (#14752265)
It should be able to record over a SPA if there are no hard reloads. I don't think it can record over multiple pages though.
Re:CSS and JS code coverage in Chrome DevTools by eriknstr on Wednesday July 12, 2017 @12:07PM (#14753695)
Meanwhile someone on Reddit said that Firefox is able to record across pages.