Skip to content

Commit aa96a10

Browse files
committed
docs(common):Add another framework reason for js error
1 parent 3a913c4 commit aa96a10

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

troubleshooting/js-errors.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ You can check if this is the case by inspecting the Network tab of your browser
5151

5252
* A problem occurs during the deployment. See the [Deployment Troubleshooting]({%slug deployment-troubleshooting%}) article for more details.
5353

54+
* The application is navigating from an interactive page. If this is the case, register the `telerik-blazor.js` after the `<base href="/" />` in the `<head>` of the web page:
55+
56+
<div class="skip-repl"></div>
57+
58+
````HTML
59+
<head>
60+
...
61+
<base href="/" />
62+
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>
63+
...
64+
</head>
65+
````
66+
5467
### Defer Attribute
5568

5669
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.

0 commit comments

Comments
 (0)