Skills for building AEM Edge Delivery Services sites — site creation, block development, content modeling, code review, testing, and page import.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
/**
* Delayed phase — non-LCP-critical work that can wait.
* For overlay pages, this loads the template's animation engine
* if one is shipped. Templates without animations skip silently —
* we HEAD-probe the expected URL first so a missing engine doesn't
* log a console 404 and doesn't pull CDN dependencies.
*/
const main = document.querySelector('main');
const template = main?.dataset?.overlay;
if (template) {
const enginePath = `${window.hlx.codeBasePath}/scripts/${template}-animations.js`;
const cdnDeps = [
'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js',
'https://cdn.jsdelivr.net/npm/lenis@1.3.27/dist/lenis.min.js',
];
const loadScript = (src) => new Promise((resolve, reject) => {
const s = document.createElement('script');
s.src = src;
s.onload = () => resolve(src);
s.onerror = () => reject(new Error(`failed: ${src}`));
document.head.appendChild(s);
});
const loadEngine = async () => {
const cdnResults = await Promise.allSettled(cdnDeps.map(loadScript));
cdnResults.forEach((r) => {
if (r.status === 'rejected') {
// eslint-disable-next-line no-console
console.warn('[animations] CDN dep missed:', r.reason.message);
}
});
const engine = document.createElement('script');
engine.src = enginePath;
document.head.appendChild(engine);
};
// Probe first. If the template ships no animation engine, the URL
// 404s and we skip silently — no CDN deps loaded either.
fetch(enginePath, { method: 'HEAD' })
.then((probe) => { if (probe.ok) loadEngine(); })
.catch(() => {
// Network error on the probe itself — also a "no engine"
// signal; skip silently.
});
}.tessl-plugin
skills
aem-block-library
aem-cli
aem-layout-view
block-collection-and-party
brand-setup
references
building-blocks
code-review
content-driven-development
references
content-modeling
create-site
da-auth
figma-to-content
find-test-content
generate-import-html
identify-page-structure
migrate-header
page-decomposition
page-import
preview-import
scrape-webpage
slicc-handoff
snowflake
assets
substrate
substrate-milo
examples
knowledge
scripts
testing-blocks
ue-component-model