Support » Plugin: PageSpeed Ninja » I want to exclude only one page from javascript

  • Deep Sojitra

    (@deepsojitra)


    I want to exclude this page from all optimization of the plugin. This page contains one form which is not loading during JavaScript optimization. I can’t stop JavaScript optimization for the website because of one page.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Deep Sojitra

    (@deepsojitra)

    there are no updates on this issue from 1 month. very disappointment.

    Plugin Author Denis Ryabov

    (@dryabov)

    There is no way to exclude a single page from PSN settings, but it’s possible to do using theme’s functions.php file, something like

    if ($_SERVER['REQUEST_URI'] === '/path/to/match' && !defined('DONOTMINIFY')) {
      define('DONOTMINIFY', true);
    }

    (where /path/to/match is URL of the page that shouldn’t be optimized by PSN).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I want to exclude only one page from javascript’ is closed to new replies.