This question is locked. New answers and comments are not allowed.
Hi,
I'm looking for guidelines on what is the proper pattern to register scripts in _Layout.cshtml , Views and partial views.
I have a ScriptRegistrar in at the bottom on my body element. followed by a @RenderSection("Scripts", required: false)
I render all of my view's script tags in that section,
Is that the proper place to register internal scripts? should I do something specific to make sure they are loaded after the scripts in the layout page?
also for partial views inject using ajax that contain telerik controls, what is the proper pattern to register the required telerik js files?
I'm looking for guidelines on what is the proper pattern to register scripts in _Layout.cshtml , Views and partial views.
I have a ScriptRegistrar in at the bottom on my body element. followed by a @RenderSection("Scripts", required: false)
I render all of my view's script tags in that section,
Is that the proper place to register internal scripts? should I do something specific to make sure they are loaded after the scripts in the layout page?
also for partial views inject using ajax that contain telerik controls, what is the proper pattern to register the required telerik js files?