Load Coolite JS only when needed

  1. #1

    Load Coolite JS only when needed

    Can we configure the website so Coolite JS is only loaded on certain pages?

    Currently it is loading on all pages in the website, which is interfering with existing code.

    Thanks
  2. #2

    RE: Load Coolite JS only when needed

    I think the coolite js is only loaded if you have a ScriptManager on the page. Do you have a master page that contains a script manager? If so maybe you can define two master pages, one for coolite, one without.
  3. #3

    RE: Load Coolite JS only when needed

    Hi mj.daly,

    Can you remove the <ext:ScriptManager> from the Page?


    Another option might be to set Visible="false" on the ScriptManager.


    Geoffrey McGill
    Founder
  4. #4

    RE: Load Coolite JS only when needed

    Thanks, I tested this out with some new blank pages, it appears you are right, the Coolite JS is not loaded when scriptmanager is missing.

    However, on the existing pages in question, there is no Coolite scriptmanager, but the Coolite JS is still being loaded.

    Maybe a 3rd party control (we have Anthem on these pages) is making Coolite think there is a Coolite script manager. I'll have to test this further.
  5. #5

    RE: Load Coolite JS only when needed

    However, on the existing pages in question, there is no Coolite scriptmanager, but the Coolite JS is still being loaded.
    This is not possible, so there must be something somewhere that is including the ScriptManager on the Page.


    Geoffrey McGill
    Founder
  6. #6

    RE: Load Coolite JS only when needed

    I guess it's possible that you could have manually included the script files.

    Geoffrey McGill
    Founder
  7. #7

    RE: Load Coolite JS only when needed

    Ok, cheers for saying that was impossible, I looked into it more deeply.

    One of the controls on that page uses the basic date picker (can be googled) which uses Coolite code.

    Tks

Similar Threads

  1. Replies: 2
    Last Post: Jun 23, 2011, 12:41 PM
  2. Rating control for Coolite Needed
    By masudcseku in forum 1.x Help
    Replies: 4
    Last Post: May 08, 2011, 7:04 PM
  3. Experienced Coolite Programmer needed
    By mmiocev in forum Open Discussions
    Replies: 0
    Last Post: Oct 16, 2009, 9:52 AM
  4. How do I load Grid only when needed?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: Jun 05, 2009, 3:31 PM

Posting Permissions