From 0f16122a24a08102fbb3463b18d276980a4077cf Mon Sep 17 00:00:00 2001 From: NansiYancheva Date: Fri, 18 Oct 2024 18:07:14 +0300 Subject: [PATCH 1/2] docs(common):Add another framework reason for js error --- troubleshooting/js-errors.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/troubleshooting/js-errors.md b/troubleshooting/js-errors.md index d36c6e2d10..96e369538b 100644 --- a/troubleshooting/js-errors.md +++ b/troubleshooting/js-errors.md @@ -51,6 +51,19 @@ You can check if this is the case by inspecting the Network tab of your browser * A problem occurs during the deployment. See the [Deployment Troubleshooting]({%slug deployment-troubleshooting%}) article for more details. +* The application is navigating from an interactive page. If this is the case, register the `telerik-blazor.js` after the `` in the `` of the web page: + +
+ +````HTML + + ... + + + ... + +```` + ### Defer Attribute Sometimes, the JS Interop file is referenced correctly and returns successfully, but occasionally you get the error. This indicates a timing issue (for example, low machine performance or slow network) that causes the script to load and be parsed too late, after it is needed. From 3410d9123b8e3c01351ce7b9f44aea220f08d830 Mon Sep 17 00:00:00 2001 From: NansiYancheva Date: Mon, 21 Oct 2024 14:56:47 +0300 Subject: [PATCH 2/2] update after review --- troubleshooting/js-errors.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/troubleshooting/js-errors.md b/troubleshooting/js-errors.md index 96e369538b..2b2d6ce9fe 100644 --- a/troubleshooting/js-errors.md +++ b/troubleshooting/js-errors.md @@ -31,6 +31,7 @@ If you get such errors, the reason may be: * [The `telerik-blazor.js` JS Interop file is missing or the URL is wrong](#missing-file) * [The `defer` attribute causes the script to load and execute too late](#defer-attribute) +* [A required order of the HTML tags in the web page](#html-tags-order) * [TypeScript `exports` workaround break Telerik Blazor](#typescript) * [A result of a syntax error in old browser](#syntaxerror-unexpected-token) @@ -51,24 +52,26 @@ You can check if this is the case by inspecting the Network tab of your browser * A problem occurs during the deployment. See the [Deployment Troubleshooting]({%slug deployment-troubleshooting%}) article for more details. -* The application is navigating from an interactive page. If this is the case, register the `telerik-blazor.js` after the `` in the `` of the web page: +### Defer Attribute + +Sometimes, the JS Interop file is referenced correctly and returns successfully, but occasionally you get the error. This indicates a timing issue (for example, low machine performance or slow network) that causes the script to load and be parsed too late, after it is needed. + +One solution is to remove the `defer` attribute of the ` ... -```` - -### Defer Attribute - -Sometimes, the JS Interop file is referenced correctly and returns successfully, but occasionally you get the error. This indicates a timing issue (for example, low machine performance or slow network) that causes the script to load and be parsed too late, after it is needed. - -One solution is to remove the `defer` attribute of the `