• Resolved Kunal Desai

    (@iamkunaldesai)


    The source code reveals loadcss code being added in the header and footer even though the option is not selected.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, i can confirm this too on a new version of FVM.
    Also in header-b9f21f68-1546290084.min.js new version of plugin adds all website’s html code and this breaks all site layout.
    header-b9f21f68-1546290084.min.js:16 Uncaught SyntaxError: Unexpected token <
    And on line 16th we have : <!DOCTYPE html><html lang=”en-US -> the start of that html code added to js.

    Please delete this new version and revert it back to fine working one. Thanks.

    Update:
    If i completely disable processing of JS and leave only CSS processing – in generated header css file plugin adds all site’s html code + some of JS -> this breaks my site totally.

    • This reply was modified 5 years, 11 months ago by Smekla.
    Plugin Author Raul P.

    (@alignak)

    @iamkunaldesai Indeed, that is to be fixed on the next update.

    @smeklinis that is an unrelated issue.

    If you have “<!DOCTYPE html>” on the merged files, it means that your server is redirecting “not found” files to some 404 page, while still returning an http header 200 (success).

    Check the FVM logs file for a list of merged CSS and JS files and try to open those individual files on your browser. One of them is probably missing (should not be enqueued if that’s the case) and redirecting to an html page.

    You can of course have a 404 page, just not for individual files such as js or css files, which are meant to return 404 if they are “really” not found.

    Raul Peixoto

    Thanks for tips , there was 2 non existing files in my theme.
    I removed links to them and now seems everything is ok.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unnecessary Code Added’ is closed to new replies.