Skip to content

Commit

Permalink
feat: improve performance measuring
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Dec 18, 2023
1 parent 81d5f1c commit 0b34331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/scripts/aem-perf-marks.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const observer = new MutationObserver((mutations) => {
if (target.dataset.blockStatus) {
const name = target.dataset.blockName;
const status = target.dataset.blockStatus;
if (status === 'initialized') {
if (status === 'loading') {
window.PerfMarks.create(name);
} else if (status === 'loaded') {
window.PerfMarks.measure(name);
Expand Down

0 comments on commit 0b34331

Please sign in to comment.