Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nik 1413 posts 6212 karma points MVP 3x c-trib
    Jun 05, 2015 @ 14:06
    Nik
    0

    SSL Clientdependency doesn't load files

    Hi guys,

    So got an odd one and I'm not sure what the cause it. We've added an SSL to our site but now the client dependences don't load. The template code is the same as before, but it isn't putting the link/script tags into the page for either HTTP or HTTPS.

    Example of some loading code:

    ClientDependencyLoader.GetInstance(Context).RegisterDependency(999, "/layerslider/css/layerslider.css", ClientDependencyType.Css);
        library.RegisterJavaScriptFile("Loader", "https://code.jquery.com/jquery-1.11.2.min.js");
        ClientDependencyLoader.GetInstance(Context).RegisterDependency(999, "/layerslider/js/greensock.js", ClientDependencyType.Javascript);
        ClientDependencyLoader.GetInstance(Context).RegisterDependency(999, "/layerslider/js/layerslider.transitions.js", ClientDependencyType.Javascript);
        ClientDependencyLoader.GetInstance(Context).RegisterDependency(999, "/layerslider/js/layerslider.kreaturamedia.jquery.js", ClientDependencyType.Javascript);
    

    This is Umbraco 7.2.4 using a mix of Webforms (i.e. a master template) and Razor views.

    Any help would be appreciated.

    Nik

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies