Skip to content

Commit 8df13e1

Browse files
bencodezenpkozlowski-opensource
authored andcommitted
docs: add overview page for performance section (angular#56828)
PR Close angular#56828
1 parent 7f550ea commit 8df13e1

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

adev/src/app/sub-navigation-data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,11 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
478478
{
479479
label: 'Performance',
480480
children: [
481+
{
482+
label: 'Overview',
483+
path: 'guide/performance',
484+
contentPath: 'guide/performance/overview',
485+
},
481486
{
482487
label: 'Deferrable views',
483488
path: 'guide/defer',

adev/src/assets/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ copy_to_directory(
2020
"//adev/src/content/guide/http",
2121
"//adev/src/content/guide/i18n",
2222
"//adev/src/content/guide/ngmodules",
23+
"//adev/src/content/guide/performance",
2324
"//adev/src/content/guide/pipes",
2425
"//adev/src/content/guide/routing",
2526
"//adev/src/content/guide/signals",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("@npm//@angular/docs:index.bzl", "generate_guides")
2+
3+
generate_guides(
4+
name = "performance",
5+
srcs = glob([
6+
"*.md",
7+
]),
8+
data = [
9+
"//adev/src/assets/images:overview.svg",
10+
],
11+
visibility = ["//adev:__subpackages__"],
12+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<docs-decorative-header title="Performance" imgSrc="adev/src/assets/images/overview.svg"> <!-- markdownlint-disable-line -->
2+
Learn about different ways you can optimize the performance of your application.
3+
</docs-decorative-header>
4+
5+
One of the top priorities of any developer is ensuring that their application is as performant as possible. These guides are here to help you follow best practices for building performant applications.
6+
7+
That said, please note that these best practices will only take the performance of your application so far. At the end of the day, we encourage you to measure performance in order to best understand what custom optimizations are best for your application.
8+
9+
| Guides Types | Description |
10+
| :---------------------------------------- | :--------------------------------------------------------------------------------------------------------- |
11+
| [Deferrable views](/defer) | Defer loading of select dependencies within a template by wrapping corresponding parts in a `@defer` block. |
12+
| [Image optimization](/image-optimization) | Use the `NgOptimizedImage` directive to adopt best practices for loading images. |
13+
| [Server-side rendering](/ssr) | Learn how to leverage rendering pages on the server to improve load times. |
14+
| [Build-time prerendering](/prerendering) | Also known as static-side generation (SSG), is an alternate rendering method to improve load times. |
15+
| [Hydration](/hydration) | A process to improve application performance by restoring its state after server-side rendering and reusing existing DOM structure as much as possible. |

0 commit comments

Comments
 (0)