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
    Nov 23, 2022 @ 14:08
    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 6150 posts 24110 karma points MVP 8x admin c-trib
    Nov 23, 2022 @ 14:52
    Alex Skrypnyk
    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
    Nov 23, 2022 @ 15:49
    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.

  • Riaan 2 posts 72 karma points
    Jun 07, 2023 @ 11:47
    Riaan
    0

    Hi Vincent

    Did you ever manage to get rid of this issue? Facing similar problems and our next step would be an upgrade of the core...

    Riaan

  • Remko 118 posts 283 karma points
    Jun 15, 2023 @ 07:18
    Remko
    0

    Unfortunately we experience exact same problem with latest Umbraco 11 website. Most of the time the bundles are ok, but then all of a sudden (randomly it seems) our site looks rediculous because some files in js and css aren't included anymore. When we restart app pool it is solved again. Hopefuly someone has a solution to this annoying problem...

  • Remko 118 posts 283 karma points
    Jun 21, 2023 @ 08:06
    Remko
    0

    Too bad no one seems to have this problem or now any solutions. Guess we have to use an alternative for bundling css/scripts...

  • Riaan 2 posts 72 karma points
    Jun 21, 2023 @ 08:55
    Riaan
    0

    Perhaps we will be lucky in a next version that it will be sorted out.

  • Remko 118 posts 283 karma points
    Oct 09, 2023 @ 09:12
    Remko
    0

    We ended up getting Smidge entirely from our sites and replacing it with WebOptimizer.

    Randomly messing up sites (suddenly a broken js or css bundle) was a no-go for us. Also smidge cache folder got way too big after a while.

    With WebOptimizer there doesn't seem to be any problems no more.

  • JBW 3 posts 72 karma points
    Apr 08, 2024 @ 01:57
    JBW
    0

    I am experiencing this headache as well with Umbraco 12.3.6. I would love to know what your steps/process was to replace Smidge with WebOptimizer.

    If I have to upgrade to Umbraco 13, that will involve moving up to .Net Core 8 which opens a can of worms with my API Service and hosting provider. And I don't have any guarantee that this same issue could still occur as I have found numerous references to this exact bug going back to v7.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft