Skip to content

Commit

Permalink
Fix: Element timings without images was shown wrong. (#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Aug 3, 2023
1 parent 8aa7d8c commit 1c7f4b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/plugins/html/templates/url/metrics/elementTimings.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ if browsertime.timings.elementTimings && Object.keys(browsertime.timings.element
table
tr
th Id
if value.url !== ''
th URL
th Image
th URL
th Image
th Tag
th Render time
th Load time
Expand All @@ -21,6 +20,9 @@ if browsertime.timings.elementTimings && Object.keys(browsertime.timings.element
td
a(href=value.url)
img.screenshot(src=value.url, alt='LCP', style='width:200px')
else
td
td
td #{value.tagName}
td #{h.time.ms(value.renderTime)}
td #{h.time.ms(value.loadTime)}
Expand Down

0 comments on commit 1c7f4b6

Please sign in to comment.