Web Artifacts Builder Performance

Sub-skill of web-artifacts-builder: Performance (+2).

vamseeachanta 29183ca 1.0 KB Updated

File contents

Performance (+2)

Performance

  1. Minimize dependencies: Only include what you need
  2. Use CDN with version pinning: library@4.4.0 not library@latest
  3. Lazy load when possible: Defer non-critical scripts
  4. Optimize images: Use SVG or base64 for small images

Accessibility

<!-- Always include -->
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Use semantic HTML -->
<main>, <nav>, <article>, <section>, <header>, <footer>

<!-- Add ARIA labels -->
<button aria-label="Close dialog">x</button>

<!-- Ensure color contrast -->
/* Minimum 4.5:1 for normal text */

Responsive Design

/* Mobile-first approach */
.container {
    padding: 10px;
}

@media (min-width: 768px) {
    .container {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

vamseeachanta/workspace-hub/tree/main/.agents/skills/_internal/builders/web-artifacts-builder/performance commit 29183ca99e

Frequently asked questions

npx skillmds@latest add vamseeachanta/web-artifacts-builder-performance