Skip to content

Address lack of viewmedia and viewblock events on blog homepage and topic pages#37

Open
justinedelson wants to merge 2 commits intoadobecom:mainfrom
justinedelson:rum-customization-bg-and-articles
Open

Address lack of viewmedia and viewblock events on blog homepage and topic pages#37
justinedelson wants to merge 2 commits intoadobecom:mainfrom
justinedelson:rum-customization-bg-and-articles

Conversation

@justinedelson
Copy link
Copy Markdown

@justinedelson justinedelson commented Jan 5, 2024

While evaluating the RUM collected data for blog.adobe.com, I identified two semi-related issues:

  • On the home page (or really any place where the card block is used), viewmedia checkpoints are not sent because the resulting DOM uses style="background-image..." rather than an img element.
  • On the home page and topic pages (or again, really any place where the article-feed block is used), viewmedia and viewblock checkpoints are not sent because the feed content is lazily loaded.

Note - I have opted here to bundle both solutions into a single JS file. These could certainly be broken apart but it seemed useful to bundle them into a single file containing any future RUM enhancements. But obviously open to feedback if maintainers would prefer an alternate approach.

Test URLs

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync bot commented Jan 5, 2024

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
/en/topics/digital-transformation PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@auniverseaway
Copy link
Copy Markdown
Member

Very cool! I think @chrischrischris can take a look when he's back from PTO. @rgclayton may have some thoughts, too.

@justinedelson justinedelson force-pushed the rum-customization-bg-and-articles branch from e717627 to 1339d03 Compare January 5, 2024 19:59
@justinedelson justinedelson force-pushed the rum-customization-bg-and-articles branch from 1339d03 to cd0f225 Compare January 5, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants