Putting js references in master page

Forums Classic DFFS Putting js references in master page

Viewing 1 reply thread
  • Author
    Posts
    • #6888
      Jeff Law
      Participant

      Hi,

      I was just wondering if you knew, or could think of, any issues if the js references were actually defined in the master page, rather than on every form.

      
      
      <link type="text/css" href="/SiteAssets/SPJS/DFFSv4/DFFS_backend.css" rel="stylesheet">
      <script type="text/javascript" src="/SiteAssets/jQuery/jquery-1.11.2.min.js"></script>
      <script type="text/javascript" src="/SiteAssets/SPJS/spjs-utility.js"></script>
      <script type="text/javascript" src="/SiteAssets/SPJS/vLookup_backend_min.js"></script>
      <script type="text/javascript" src="/DFFS/SPJS/SPJS-Casc.js"></script>

      I have done this in the past when using other jQUery libraries.

      I have found that I am using DFFS in particular on just about form now, so thought I would simplify it 🙂

      Regards
      Jeff

    • #6897
      Alexander Bautz
      Keymaster

      I’m not sure this is a good idea. The scripts will load for ALL pages, and not just the forms. This will make the page load slower as it has to query the DFFS config list to see if it finds any records.

      You can try it, but it is not “officially” recommended.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.