webcomponents.org icon indicating copy to clipboard operation
webcomponents.org copied to clipboard

Show average component load time some how

Open kenchris opened this issue 9 years ago • 5 comments

Developers should be very concerned about load time today, so it would be nice to show the current time it took to load and show the component. If some average can be shown instead that would be even better, ie. average time on common devices or similar.

@slighlylate

kenchris avatar Jan 10 '17 18:01 kenchris

Yep, sounds good! The challenging part is ensuring they are accurate & representative numbers. eg. do we measure an empty element? Do we measure all the elements/some of them? Load time is one factor, stamping is another. For a checkbox, the requirements are pretty different to a singleton app level element.

samuelli avatar Jan 11 '17 03:01 samuelli

Cool idea, but I'd echo @samuelli's concern that a single 'load time' metric would be pretty hard to get, and very hard to correlate to actual perceived perf. Is it just time taken to load/parse/upgrade the element? Is it first paint? What about components that rely on network requests/APIs? etc.

Still, probably better than nothing. Just might encourage people to optimize for the wrong things.

madeleineostoja avatar Mar 28 '17 13:03 madeleineostoja

Could also show element size (gzipped) in the meta info on the left somewhere

madeleineostoja avatar Mar 28 '17 13:03 madeleineostoja

@seaneking: including or excluding deps? The whole repo or just the specified files in bower 'main' (+ loaded graphs)

samuelli avatar Mar 29 '17 21:03 samuelli

Hmm yeah that's tricky, people might lazy-load deps so bundled size isn't really an accurate figure for load perf either

madeleineostoja avatar Mar 29 '17 22:03 madeleineostoja