Skip to content

Commit e6c9912

Browse files
pokeN. Taylor Mullen
authored and
N. Taylor Mullen
committed
Render sections asynchronously in templates (#13091)
1 parent 74360c7 commit e6c9912

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
5151
<script src="~/js/site.js" asp-append-version="true"></script>
5252

53-
@RenderSection("Scripts", required: false)
53+
@await RenderSectionAsync("Scripts", required: false)
5454
</body>
5555
</html>

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
<script src="~/lib/jquery/dist/jquery.min.js"></script>
4949
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
5050
<script src="~/js/site.js" asp-append-version="true"></script>
51-
@RenderSection("Scripts", required: false)
51+
@await RenderSectionAsync("Scripts", required: false)
5252
</body>
5353
</html>

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747

4848
<script src="~/js/site.js" asp-append-version="true"></script>
4949

50-
@RenderSection("Scripts", required: false)
50+
@await RenderSectionAsync("Scripts", required: false)
5151
</body>
5252
</html>

0 commit comments

Comments
 (0)