Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add fragments and use in header / footer #264

Merged
merged 9 commits into from
Nov 10, 2023
Merged

Conversation

davidnuescheler
Copy link
Contributor

@davidnuescheler davidnuescheler commented Sep 29, 2023

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 29, 2023

Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-run PSI Checks

@davidnuescheler davidnuescheler requested review from fkakatie and rofe and removed request for fkakatie September 29, 2023 17:38
@aem-code-sync
Copy link

aem-code-sync bot commented Sep 29, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 29, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

blocks/header/header.js Outdated Show resolved Hide resolved
blocks/footer/footer.js Outdated Show resolved Hide resolved
blocks/header/header.js Outdated Show resolved Hide resolved
davidnuescheler and others added 4 commits October 16, 2023 09:04
Co-authored-by: Raphael Wegmueller <github@rofe.com>
Co-authored-by: Raphael Wegmueller <github@rofe.com>
@aem-code-sync
Copy link

aem-code-sync bot commented Oct 18, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
/drafts/uncled/fragment-test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

aem-code-sync bot commented Nov 1, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
/drafts/uncled/fragment-test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

aem-code-sync bot commented Nov 2, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
/drafts/uncled/fragment-test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

aem-code-sync bot commented Nov 2, 2023

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
/drafts/uncled/fragment-test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@davidnuescheler davidnuescheler merged commit 20e750a into main Nov 10, 2023
3 checks passed
@davidnuescheler davidnuescheler deleted the fragments branch November 10, 2023 21:36
Copy link

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

const footerPath = cfg.footer || '/footer';
const resp = await fetch(`${footerPath}.plain.html`, window.location.pathname.endsWith('/footer') ? { cache: 'reload' } : {});
// load footer fragment
const footerPath = footerMeta.footer || '/footer';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidnuescheler I think this line should just be

const footerPath = footerMeta || '/footer';

since switching to getMetadata instead of readBlockConfig. IIUC, getMetadata only returns a string so footerMeta.footer will always be undefined.

Is my assumption correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants