Copied to clipboard

Flag this post as spam?

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


  • Vincent van Belle 2 posts 72 karma points
    5 days ago
    Vincent van Belle
    0

    Randomly no JS and/or complete CSS on site with Smidge helper

    Hi,

    We use Smidge helper on several of our Umbraco 9 and 10 sites with Igloo.

    After app pool recycle the CSS and/or JS are sometimes not loaded correctly (missing, or not all CSS contained).

    When we recycle the app pool, they suddenly work again (no code changes).

    It seems to happen randomly, we found no pattern in this behaviour.

    We have this on our test and production servers and on several sites.

    Does anyone have an idea what goes wrong and how to solve this? Or is this know bug?

    Thanks :)

    P.S. The Smidge helper is used like this:

    SmidgeHelper
    .CreateJsBundle("igloo-js-bundle")
    .RequiresJs("/scripts/lib/ls.respimg.min.js", 
        "/scripts/lib/ls.bgset.min.js" , 
        "/scripts/lib/lazysizes.min.js",
        "/scripts/lib/fluidvids.js",
        "/scripts/lib/photoswipe.min.js",
        "/scripts/lib/photoswipe-ui-default.min.js",
        "/scripts/lib/instafeed.js",
        "/scripts/lib/flickity.pkgd.min.js",
        "/scripts/lib/forms/promise-polyfill/polyfill.min.js",
        "/scripts/lib/forms/aspnet-validation/aspnet-validation.min.js",
        "/scripts/lib/intersection-observer.js",
        "/scripts/lib/axios.min.js",
        "/scripts/ig-app.js");
    
    SmidgeHelper
        .CreateCssBundle("igloo-css-bundle")
        .RequiresCss("~/css/lib/reset.css", 
        "~/css/ig-theme.defaults.css", 
        "~/css/lib/font-awesome.css", 
        "~/css/lib/photoswipe.css", 
        "~/css/ig-base.css", 
        "~/css/ig-header.css", 
        "~/css/ig-footer.css", 
        "~/css/ig-widgets.css"
        );
    
  • Alex Skrypnyk (skrypnyk.dev) 6070 posts 23407 karma points MVP 6x admin c-trib
    5 days ago
    Alex Skrypnyk (skrypnyk.dev)
    0

    Hi Vincent,

    Can you check what settings you are using for Smidge in appsettings.json - "RuntimeMinification" section? Try to experiment with settings. Documentation is here - https://our.umbraco.com/documentation/Reference/Configuration/RuntimeMinificationSettings/

    Thanks, Alex

  • Vincent van Belle 2 posts 72 karma points
    5 days ago
    Vincent van Belle
    0

    Hi Alex,

    Thank you for your advice.

    We currently have the following settings:

    "RuntimeMinification": {
        "useInMemoryCache": true,
        "cacheBuster": "Timestamp"
      },
    

    We will try to change these values to see if this solves the issue.

Please Sign in or register to post replies

Write your reply to:

Draft