Skip to content

Commit 4be0d8e

Browse files
authored
Updated based on feedback
1 parent f611f67 commit 4be0d8e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

powerapps-docs/developer/model-driven-apps/web-resource-dependencies.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Web resource dependencies (model-driven apps) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Learn about defining dependencies between web resources in Common Data Service" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 05/07/2020
66
ms.reviewer: ""
77
ms.service: powerapps
88
ms.topic: "article"
@@ -17,8 +17,6 @@ search.app:
1717
---
1818
# Web resource dependencies
1919

20-
<!-- https://docs.microsoft.com/dynamics365/customer-engagement/developer/web-resource-dependencies -->
21-
2220
You can define dependencies between other web resources. The primary purpose of this feature is to allow association of String (RESX) web resources with the JavaScript web resources that will use them. This is also the way that web resources required by HTML web resources for use offline can be configured to also be available offline.
2321

2422
However there are some other behaviors which developers using JavaScript web resources can take advantage of.
@@ -34,7 +32,7 @@ Within a solution you can define dependencies within solution components. Up unt
3432
3533
The most common scenario is to associate string (RESX) web resources with a JavaScript web resource that depends on it. There will be a String (RESX) web resource for each language that is associated with the JavaScript web resource that uses it. When that JavaScript web resource is loaded, the localized values will also automatically be loaded for the user’s preferred language and the organization base language so that they are available for use. Since you should be creating solution dependencies between these resources anyway, you will have the additional benefit of knowing that the dependent RESX resources will be automatically loaded when you need them.
3634

37-
However, web resource dependencies are not limited to just RESX web resources. You can associate a JavaScript web resource to any other type of web resource to create dependencies that will cause the associated web resource to be loaded together with the JavaScript web resource. This will save time because you will not need to explicitly load multiple dependent web resources when you register a script for a form event, just register the primary script and let the dependency configuration load the rest. You can even create a chain of dependencies because any JavaScript web resources that are loaded because of the primary JavaScript web resource will include any web resources that are associated to them.
35+
However, web resource dependencies are not limited to just RESX web resources. You can associate a JavaScript web resource to any other type of web resource to create dependencies that will cause the associated web resource to be loaded together with the JavaScript web resource. This will save time because you will not need to explicitly load multiple dependent web resources when you register a script for a [form event](/powerapps/developer/model-driven-apps/clientapi/reference/events#form-events), [ribbon command](/powerapps/developer/model-driven-apps/define-ribbon-commands), or ribbon rule ([enable rules](/powerapps/developer/model-driven-apps/define-ribbon-enable-rules) or [display rules](/powerapps/developer/model-driven-apps/define-ribbon-display-rules)), just register the primary script and let the dependency configuration load the rest. You can even create a chain of dependencies because any JavaScript web resources that are loaded because of the primary JavaScript web resource will include any web resources that are associated to them.
3836

3937
> [!IMPORTANT]
4038
> Web resource dependencies does not provide any control over the order in which the web resources are loaded. All the web resources are loaded asynchronously and in parallel. If you have a JavaScript web resource which depends on another JavaScript web resource to be loaded and initialized before it can be initialized, you will need to manage that dependency in another way.

0 commit comments

Comments
 (0)