• Resolved sponser1

    (@sponser1)


    Hey, for some reason when I am using sort for my products on shop page, the whole site gets broken and when I go inspect > console it shows erros of:

    “wpo-minify-header-f1094247.min.js:1 Failed to load resource: the server responded with a status of 404 ()”
    “Refused to execute script from ” because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.”
    “Refused to execute script from “‘”https://drippo.com/wp-content/cache/wpo-minify/1694857157/assets/wpo-minify-header-f1094247.min.js”‘” because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.”
    “wpo-minify-header-2f7f0ded.min.js:1 Failed to load resource: the server responded with a status of 404 ()”
    “Refused to apply style from ‘https://drippo.com/wp-content/cache/wpo-minify/1694857157/assets/wpo-minify-header-9b5c40ce.min.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.”

    and more couple of lines like that.
    Everything other than the shop page is fine, it’s just the shop page when I do sort (sort by price low to high…) or filter like sizes, brands etc..
    Also, when I am on admin mode everything is fine there are no errors and everything is smooth, but if I go incognito to browse my website like a customer, it happens.

    • This topic was modified 1 year, 2 months ago by sponser1.
    • This topic was modified 1 year, 2 months ago by sponser1.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sponser1

    (@sponser1)

    I managed to figure it out, the WP-Optimize causing these issues when Minify Javascript and Minify CSS enabled. When I disable, the website works all fine. But the thing is that I do want to enable these option so my website would run faster, so is there any way to enable it without it broking my site?

    Your website supports HTTP2, and using minification can negatively affect performance. Unlike HTTP/1.1, where each request is processed one after another, HTTP/2 allows multiple requests to be loaded simultaneously. Keeping individual files unmerged and un-minified can lead to quicker loading times because each smaller file can be uploaded and downloaded in parallel, resulting in a faster rendering process for the website.

    You can enable minification, but don’t merge CSS and JS files; instead, identify files that cause render blocking and defer them to improve performance.

    Plugin Support pbevanudp

    (@pbevanudp)

    If minifying the CSS is breaking your site, firstly run your CSS through something like csslint.net to make sure it’s correct. If it is correct you can exclude problematic files from being minified in Minify > CSS > Exclude the following CSS files from processing. Some trial and error will be necessary to figure out which one(s) are causing the issue. You can also try not merging the CSS files by unchecking Enable merging of CSS files in Minify > CSS > CSS Options

    For JavaScript, try enabling Contain each included file in its own block in Minify -> JavaScript in JavaScript options or try disabling merging of the JavaScript files.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpo minify errors 404 breaking my site’ is closed to new replies.