Title: White Screen when enabling Javascript
Last modified: June 10, 2017

---

# White Screen when enabling Javascript

 *  Resolved [cerebro420](https://wordpress.org/support/users/cerebro420/)
 * (@cerebro420)
 * [9 years ago](https://wordpress.org/support/topic/white-screen-when-enabling-javascript/)
 * Hello, so far the CSS and HTML aspects of the plugin work, but when I enable 
   Javascript I get a white screen on the front-end. I’ve added a bunch of JS scripts
   to the exception, but am unable to fix the white screen. Here is the error’s 
   in the console that I get:
 *     ```
       JQMIGRATE: Migrate is installed, version 1.4.1
       footer-a9b26370-1497065499.min.js:106 Uncaught ReferenceError: Modernizr is not defined
           at footer-a9b26370-1497065499.min.js:106
           at footer-a9b26370-1497065499.min.js:110
       footer-bebcddf5-1497065499.min.js:86 Uncaught SyntaxError: Delete of an unqualified identifier in strict mode.
       (index):16 Uncaught ReferenceError: frslib is not defined
           at HTMLDocument.<anonymous> ((index):16)
           at i (header-cb050ccd-1497065499.min.js:2)
           at Object.fireWith [as resolveWith] (header-cb050ccd-1497065499.min.js:2)
           at Function.ready (header-cb050ccd-1497065499.min.js:2)
           at HTMLDocument.K (header-cb050ccd-1497065499.min.js:2)
       ```
   
 * I was hoping you could help me with this. Thank you.

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

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [9 years ago](https://wordpress.org/support/topic/white-screen-when-enabling-javascript/#post-9215422)
 * Hi,
 * There are two types of white screens:
 * One is when wordpress gets a PHP error and cannot load.
    When that happens, it
   returns a (fatal) error that results on a white page. That white page, usually
   is either completely empty or just loaded some partial html, such as the header.
   Can you see any html code when you click on “view source” on Google Chrome?
 * The second way, is when your site uses ajax and heavy jquery code to load modules
   or large portions of the page (such as adding or removing a preload, remove invisibility,
   etc).
 * Because what you posted above seems to be from the Google Chrome console log,
   I’m going to assume this is the one happening.
 * Then, the first error says that “Modernizr is not defined”, therefore that Modernizr
   file needs to be ignored.
 * Furthermore, the second error says “Uncaught ReferenceError: frslib is not defined”,
   where “frslib” can be from many places.
 * A quick google finds a plugin called “fresh framework”, and some compatibility
   issues with jetpack and some YITH Premium plugins, that cause pages to be blank.
   
   [http://support.freshface.net/forums/topic/home-page-wont-load-issue/](http://support.freshface.net/forums/topic/home-page-wont-load-issue/)
 * Now, this might not be the issue, but let me just say that you cannot have multiple
   css and js optimization plugins, because they are all doing the same thing…
    
   If you have some other optimization plugins, such as those that move scripts 
   to footer, or load async js and css, or any other plugin that promises better
   speed, you have to disable them.
 * The best combination, would be our plugin and W3 Total Cache (with cache enabled,
   but minification disabled).
 * Do you have any other plugin trying to optimize the site?
 *  Thread Starter [cerebro420](https://wordpress.org/support/users/cerebro420/)
 * (@cerebro420)
 * [9 years ago](https://wordpress.org/support/topic/white-screen-when-enabling-javascript/#post-9216158)
 * Hello, thanks for the reply. I disabled the pre-load and excluded some of the
   scripts. It now seems to be working correctly, but some of the custom CSS I had
   through the front-end editor are not showing up. Do you know how I can enable
   the custom CSS that I had? Thank you and I appreciate the help.
 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/white-screen-when-enabling-javascript/#post-9219374)
 * If you have a frontend editor, make sure you select the “Fix Page Editors” option,
   so you can edit your pages.
 * Depending on your theme, “some” inline CSS that is a children of some other css
   file, can be merged together. Does it appear, inside the merged css file?
 * Where was that extra css, on the header?

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

The topic ‘White Screen when enabling Javascript’ 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

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [white screen](https://wordpress.org/support/topic-tag/white-screen/)

 * 3 replies
 * 2 participants
 * Last reply from: [Raul P.](https://wordpress.org/support/users/alignak/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/white-screen-when-enabling-javascript/#post-9219374)
 * Status: resolved