[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EA9CDNYTFW93NT6VMF4RTJ":3,"skill-same:01M6EA9CDNYTFW93NT6VMF4RTJ":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6EA9CDNYTFW93NT6VMF4RTJ","angular-performance",null,"Angular performance: NgOptimizedImage, @defer, lazy loading, SSR. Trigger: When optimizing Angular app performance, images, or lazy loading.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FGentleman-Programming\u002FGentleman-Skills\u002Fperformance\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"performance","angular","angular performance","ssr","programming","images","app","trigger","2026-11-10 10:12:30",false,"---\nname: angular-performance\ndescription: >\n  Angular performance: NgOptimizedImage, @defer, lazy loading, SSR.\n  Trigger: When optimizing Angular app performance, images, or lazy loading.\nmetadata:\n  author: gentleman-programming\n  version: \"1.0\"\n---\n\n## NgOptimizedImage (REQUIRED for images)\n\n```typescript\nimport { NgOptimizedImage } from '@angular\u002Fcommon';\n\n@Component({\n  imports: [NgOptimizedImage],\n  template: `\n    \u003C!-- LCP image: add priority -->\n    \u003Cimg ngSrc=\"hero.jpg\" width=\"800\" height=\"400\" priority>\n    \n    \u003C!-- Regular: lazy loaded by default -->\n    \u003Cimg ngSrc=\"thumb.jpg\" width=\"200\" height=\"200\">\n    \n    \u003C!-- Fill mode (parent needs position: relative) -->\n    \u003Cimg ngSrc=\"bg.jpg\" fill>\n    \n    \u003C!-- With placeholder -->\n    \u003Cimg ngSrc=\"photo.jpg\" width=\"400\" height=\"300\" placeholder>\n  `\n})\n```\n\n### Rules\n- ALWAYS set `width` and `height` (or `fill`)\n- Add `priority` to LCP (Largest Contentful Paint) image\n- Use `ngSrc` not `src`\n- Parent of `fill` image must have `position: relative\u002Ffixed\u002Fabsolute`\n\n---\n\n## @defer - Lazy Components\n\n```html\n@defer (on viewport) {\n  \u003Cheavy-component \u002F>\n} @placeholder {\n  \u003Cp>Placeholder shown immediately\u003C\u002Fp>\n} @loading (minimum 200ms) {\n  \u003Cspinner \u002F>\n} @error {\n  \u003Cp>Failed to load\u003C\u002Fp>\n}\n```\n\n### Triggers\n\n| Trigger | When to Use |\n|---------|-------------|\n| `on viewport` | Below the fold content |\n| `on interaction` | Load on click\u002Ffocus\u002Fhover |\n| `on idle` | Load when browser is idle |\n| `on timer(500ms)` | Load after delay |\n| `when condition` | Load when expression is true |\n\n```html\n\u003C!-- Multiple triggers -->\n@defer (on viewport; on interaction) {\n  \u003Ccomments \u002F>\n}\n\n\u003C!-- Conditional -->\n@defer (when showComments()) {\n  \u003Ccomments \u002F>\n}\n```\n\n---\n\n## Lazy Routes\n\n```typescript\n\u002F\u002F Single component\n{\n  path: 'admin',\n  loadComponent: () => import('.\u002Ffeatures\u002Fadmin\u002Fadmin').then(c => c.AdminComponent)\n}\n\n\u002F\u002F Feature with child routes\n{\n  path: 'users',\n  loadChildren: () => import('.\u002Ffeatures\u002Fusers\u002Froutes').then(m => m.USERS_ROUTES)\n}\n```\n\n---\n\n## SSR & Hydration\n\n```typescript\nbootstrapApplication(AppComponent, {\n  providers: [\n    provideClientHydration()\n  ]\n});\n```\n\n| Scenario | Use |\n|----------|-----|\n| SEO critical (blog, e-commerce) | SSR |\n| Dashboard\u002FAdmin | CSR |\n| Static marketing site | SSG\u002FPrerender |\n\n---\n\n## Slow Computations\n\n| Solution | When |\n|----------|------|\n| Optimize algorithm | First choice always |\n| Pure pipes | Cache single result |\n| Memoization | Cache multiple results |\n| `computed()` | Derived signal state |\n\n**NEVER** trigger reflows\u002Frepaints in lifecycle hooks (`ngOnInit`, `ngAfterViewInit`).\n\n---\n\n## Resources\n\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fimage-optimization\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fdefer\n- https:\u002F\u002Fangular.dev\u002Fbest-practices\u002Fruntime-performance\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fssr\n\n","## NgOptimizedImage (REQUIRED for images)\n\n```typescript\nimport { NgOptimizedImage } from '@angular\u002Fcommon';\n\n@Component({\n  imports: [NgOptimizedImage],\n  template: `\n    \u003C!-- LCP image: add priority -->\n    \u003Cimg ngSrc=\"hero.jpg\" width=\"800\" height=\"400\" priority>\n    \n    \u003C!-- Regular: lazy loaded by default -->\n    \u003Cimg ngSrc=\"thumb.jpg\" width=\"200\" height=\"200\">\n    \n    \u003C!-- Fill mode (parent needs position: relative) -->\n    \u003Cimg ngSrc=\"bg.jpg\" fill>\n    \n    \u003C!-- With placeholder -->\n    \u003Cimg ngSrc=\"photo.jpg\" width=\"400\" height=\"300\" placeholder>\n  `\n})\n```\n\n### Rules\n- ALWAYS set `width` and `height` (or `fill`)\n- Add `priority` to LCP (Largest Contentful Paint) image\n- Use `ngSrc` not `src`\n- Parent of `fill` image must have `position: relative\u002Ffixed\u002Fabsolute`\n\n---\n\n## @defer - Lazy Components\n\n```html\n@defer (on viewport) {\n  \u003Cheavy-component \u002F>\n} @placeholder {\n  \u003Cp>Placeholder shown immediately\u003C\u002Fp>\n} @loading (minimum 200ms) {\n  \u003Cspinner \u002F>\n} @error {\n  \u003Cp>Failed to load\u003C\u002Fp>\n}\n```\n\n### Triggers\n\n| Trigger | When to Use |\n|---------|-------------|\n| `on viewport` | Below the fold content |\n| `on interaction` | Load on click\u002Ffocus\u002Fhover |\n| `on idle` | Load when browser is idle |\n| `on timer(500ms)` | Load after delay |\n| `when condition` | Load when expression is true |\n\n```html\n\u003C!-- Multiple triggers -->\n@defer (on viewport; on interaction) {\n  \u003Ccomments \u002F>\n}\n\n\u003C!-- Conditional -->\n@defer (when showComments()) {\n  \u003Ccomments \u002F>\n}\n```\n\n---\n\n## Lazy Routes\n\n```typescript\n\u002F\u002F Single component\n{\n  path: 'admin',\n  loadComponent: () => import('.\u002Ffeatures\u002Fadmin\u002Fadmin').then(c => c.AdminComponent)\n}\n\n\u002F\u002F Feature with child routes\n{\n  path: 'users',\n  loadChildren: () => import('.\u002Ffeatures\u002Fusers\u002Froutes').then(m => m.USERS_ROUTES)\n}\n```\n\n---\n\n## SSR & Hydration\n\n```typescript\nbootstrapApplication(AppComponent, {\n  providers: [\n    provideClientHydration()\n  ]\n});\n```\n\n| Scenario | Use |\n|----------|-----|\n| SEO critical (blog, e-commerce) | SSR |\n| Dashboard\u002FAdmin | CSR |\n| Static marketing site | SSG\u002FPrerender |\n\n---\n\n## Slow Computations\n\n| Solution | When |\n|----------|------|\n| Optimize algorithm | First choice always |\n| Pure pipes | Cache single result |\n| Memoization | Cache multiple results |\n| `computed()` | Derived signal state |\n\n**NEVER** trigger reflows\u002Frepaints in lifecycle hooks (`ngOnInit`, `ngAfterViewInit`).\n\n---\n\n## Resources\n\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fimage-optimization\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fdefer\n- https:\u002F\u002Fangular.dev\u002Fbest-practices\u002Fruntime-performance\n- https:\u002F\u002Fangular.dev\u002Fguide\u002Fssr\n\n",{"name":5,"metadata":32,"description":35},{"author":33,"version":34},"gentleman-programming","1.0","Angular performance: NgOptimizedImage, @defer, lazy loading, SSR. Trigger: When optimizing Angular app performance, images, or lazy loading.\n","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FGentleman-Programming\u002FGentleman-Skills\u002Fperformance",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill angular-performance",{"tool":51,"command":52},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill angular-performance",{"tool":54,"command":55},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill angular-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FGentleman-Programming\u002FGentleman-Skills\u002Fperformance\u002FSKILL.md",true,[59,65,69,73,77,81],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"BENCHMARK.md","REFERENCE","参考文档",3834,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002FBENCHMARK.md",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"evals\u002Fevals.json",3318,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002Fevals\u002Fevals.json",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fcontainer-paths.md",3248,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002Freferences\u002Fcontainer-paths.md",{"path":74,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstage4-finetune.md",8799,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002Freferences\u002Fstage4-finetune.md",{"path":78,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":79,"sourceHtmlUrl":80},"skill-card.md",3771,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002Fskill-card.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"skill.oms.sig","OTHER","其他",5101,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fdigital-health-clinical-asr-finetune\u002Fskill.oms.sig",[88,97,106,115,121,127],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":27},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[94,95,96],"model","model hierarchy","model hierarchy skill",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":27},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[103,104,105],"MCP","zoom","zoom mcp",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":27},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[112,113,114,104],"sdk","zoom apps sdk","apps",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":27},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[117],{"skillNo":122,"name":123,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":27},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[123],{"skillNo":128,"name":129,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":27},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[129]]