Skip to content

Commit 092ec02

Browse files
Merge pull request SharePoint#8175 from dereklh7/Revert-6-13-WebParts
Validation: Added Unique Alt Text
2 parents 4428778 + c2892de commit 092ec02

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/spfx/web-parts/guidance/supporting-section-backgrounds.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Supporting section backgrounds
33
description: The available options for implementing support in your web parts for section backgrounds.
4-
ms.date: 06/16/2020
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
---
77

@@ -13,11 +13,11 @@ Starting with SharePoint Framework v1.8, web parts can be made aware of any sect
1313

1414
The section background color you can set is based upon the main color of the theme you applied. To set the background of a section open its properties:
1515

16-
![Setting properties of a background](../../../images/supporting-section-backgrounds-modify-section.png)
16+
![Screenshot of a red arrow pointing to the background properties icon.](../../../images/supporting-section-backgrounds-modify-section.png)
1717

1818
In the properties you can define which type of section background you want to set:
1919

20-
![Setting properties of a background](../../../images/supporting-section-backgrounds-modify-section2.png)
20+
![Screenshot of the Layout options pane with the One column option being highlighted.](../../../images/supporting-section-backgrounds-modify-section2.png)
2121

2222
## Making your web part theme aware
2323

docs/spfx/web-parts/guidance/use-existing-javascript-libraries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use existing JavaScript libraries in SharePoint Framework client-side web parts
33
description: Ensure that your web parts won't negatively impact the performance of SharePoint pages that they're being used on.
4-
ms.date: 12/02/2020
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -75,11 +75,11 @@ However, bundling existing JavaScript libraries with SharePoint Framework client
7575

7676
When bundling existing JavaScript frameworks in the SharePoint Framework, all referenced scripts are included in the generated bundle file. Following the Angular example, an optimized web part bundle including Angular is over 170 KB.
7777

78-
![Bundle file size highlighted in Explorer](../../../images/external-scripts-bundle-size.png)
78+
![Screenshot of the File Explorer screen's deploy folder showing the Hello World bundle JavaScript file being highlighted.](../../../images/external-scripts-bundle-size.png)
7979

8080
If you add another web part to your project that also uses Angular and you build the project, you get two bundle files, one for each web part, each of them being over 170 KB.
8181

82-
![Two bundle files highlighted in Explorer](../../../images/external-scripts-two-bundles-size.png)
82+
![Screenshot of the File Explorer screen's deploy folder showing two Hello World bundle JavaScript files being highlighted.](../../../images/external-scripts-two-bundles-size.png)
8383

8484
If you add these web parts to a page, each user would download Angular multiple times, once with each web part on the page. This approach is inefficient and slows down page load time.
8585

@@ -162,11 +162,11 @@ export default class HelloWorldWebPart extends BaseClientSideWebPart<IHelloWorld
162162

163163
If you build your project now and take a look at the size of the generated bundle file, you notice that it's only 6 KB.
164164

165-
![Bundle file size highlighted in Explorer](../../../images/external-scripts-external-angular-bundle-size.png)
165+
![Screenshot of File Explorer showing the deploy folder with the Hello Word JavaScript file being highlighted.](../../../images/external-scripts-external-angular-bundle-size.png)
166166

167167
If you add another web part to your project that also uses Angular, and you build the project again, both bundles would be 6 KB each.
168168

169-
![Two bundle files highlighted in Explorer](../../../images/external-scripts-external-angular-two-bundles-size.png)
169+
![Screenshot of File Explorer showing the deploy folder with two Hello Word JavaScript files being highlighted.](../../../images/external-scripts-external-angular-two-bundles-size.png)
170170

171171
It isn't correct to assume that you've saved over 300 KB. Both web parts still need Angular and load it the first time the user visits the page where one of the web parts is placed.
172172

0 commit comments

Comments
 (0)