Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1486887

    Hi Enfold Team,

    We’re seeing a recurring issue across several WordPress websites built using the ENFOLD theme. All of these websites are hosted with SiteGround, and we’re using Enfold’s built-in JavaScript file merging and compression (via Enfold > Performance), not SiteGround’s SG Optimizer plugin for JS handling.

    The problem arises with the auto-generated avia-footer-scripts file in the /wp-content/uploads/dynamic_avia/ directory. Occasionally, this file appears to be served with the wrong MIME type (text/html instead of application/javascript), which causes the browser to block it and throw this error:

    Refused to execute script from ‘https://example.com/wp-content/uploads/dynamic_avia/avia-footer-scripts-xxxxx.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

    When we visit the file directly, it displays a “Nothing found” page.

    Temporary Fix

    We’ve been resolving the issue manually with this process:
    1. Go to Enfold > Performance in the WordPress dashboard.
    2. Click “Delete old CSS and JS files”.
    3. Go to Enfold > Theme Options and click “Save all changes”.
    4. Clear browser cache and refresh the site.

    This regenerates the file with a new hash and correct MIME type, and the issue resolves.

    Our questions:
    • Do you know what might be causing this to happen across multiple Enfold-powered sites?
    • Is there anything we can do to prevent this from happening again in future?

    Thanks again for creating such an excellent theme and offering first-class support — we really appreciate your work.

    Many thanks in advance,

    Ben

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.