More in this section

Forums / Developing with Sitefinity / Positioning of scripts

Positioning of scripts

2 posts, 0 answered
  1. Rick
    Rick avatar
    15 posts
    15 Aug 2011
    08 Nov 2011
    Link to this post

    I have a strange problem when loading certain (jQuery) scripts, I normally load them in the masterpage.cs. This works since the browser can find and read them perfectly, except some scripts don't seem to work then (can't find the specific function of that script).

    I already found a way around this by loading the script in de masterpage.cs in a literal and then placing this literal at the place right above the configurable script settings (or where you load the script). By doing this everything works well but I find it weird that it matters that much, is there an explanation for this?

    Thanks for your time,
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    03 Nov 2014
    10 Nov 2011
    Link to this post
    Hi Rick,

    Why don't you drop a JavaScript widget in your template with the master page and set the scripts to load in the <head> tag? I would need more information about your scripts that you load as well if this doesn't work.

    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered