Title: Unnecessary Code Added
Last modified: December 28, 2018

---

# Unnecessary Code Added

 *  Resolved [Kunal Desai](https://wordpress.org/support/users/iamkunaldesai/)
 * (@iamkunaldesai)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/unnecessary-code-added/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funnecessary-code-added%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Smekla](https://wordpress.org/support/users/smeklinis/)
 * (@smeklinis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/unnecessary-code-added/#post-11043990)
 * 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 7 years, 5 months ago by [Smekla](https://wordpress.org/support/users/smeklinis/).
 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/unnecessary-code-added/#post-11069376)
 * [@iamkunaldesai](https://wordpress.org/support/users/iamkunaldesai/) Indeed, 
   that is to be fixed on the next update.
 * [@smeklinis](https://wordpress.org/support/users/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.
 *  [Smekla](https://wordpress.org/support/users/smeklinis/)
 * (@smeklinis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/unnecessary-code-added/#post-11074425)
 * 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.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * 3 replies
 * 3 participants
 * Last reply from: [Smekla](https://wordpress.org/support/users/smeklinis/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/unnecessary-code-added/#post-11074425)
 * Status: resolved