• Resolved central4all

    (@central4allgmailcom)


    NSFW

    I use autoprimize and i try to make my site faster possible for google.
    My problem is that even if optimization for logged in users is off, i see a lot of changes / errors in my website. Buttons slideshows and more are not working and i have to work like optimization for logged in users is on. Any advice?
    I dont use cdn i use the critical css addon and Async JavaScript set to defer that is also setnot enabled for logged in users.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    too many variables there to be honest. Can you first test with just AO; no “inline & defer” (so CritCSS does not kick in) and no AsyncJS (or other optimizations you might have) and see what happens?

    Thread Starter central4all

    (@central4allgmailcom)

    I will when i will return, i must go out and is something that needs time.
    thank you for your fast response

    Thread Starter central4all

    (@central4allgmailcom)

    I did everythingi and all look fine,
    now i have to wait for caching the site

    Thread Starter central4all

    (@central4allgmailcom)

    Already smart slider broke for logged users

    Thread Starter central4all

    (@central4allgmailcom)

    Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 409: ‘<p>Δεν έχεις τα απαραίτητα δικαιώματα ! in /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214 Stack trace: #0 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action(1) #1 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min() #2 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/autoptimizeSpeedupper.php(38): JSMin::minify(‘\njQuery(documen…’) #3 /home/adultforum/public_html/wp-includes/class-wp-hook.php(288): autoptimizeSpeedupper->js_snippetcacher(‘\njQuery(documen…’, ”) #4 /home/adultforum/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘\njQuery(documen…’, Array) #5 /home/adultf in /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php on line 214

    this is error from chrome for logged users,
    firefox is not giving errors yet

    Thread Starter central4all

    (@central4allgmailcom)

    i closed Async JavaScript this error remains for loggged users

    Thread Starter central4all

    (@central4allgmailcom)

    Inline and Defer CSS closed, error remains for loggged users

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, so;
    * “logged in users” is actually “logged in editors/ administrators” at code level, it is mainly aimed at people who use pagebuilders. If you want I can provide you with a code snippet to disable AO for all logged on users.
    * the error is of the JS minifier component which crashes on some bad JS, you’ll have to find in which file (or inline JS) <p>Δεν ?χει? τα απαρα?τητα δικαι?ματα is located and either find the JS error (the unterminated string) or exclude that file or block of inline JS from being optimized

    frank

    Thread Starter central4all

    (@central4allgmailcom)

    i closed aggregate inline JS and error was gone
    i openned it again aggregate inline JS and brake the site for logged users and not for guests
    same problem with aggregate inline CSS brakes for logged users an not for guests

    Thread Starter central4all

    (@central4allgmailcom)

    * “logged in users” are just members accounts no editors no admins
    * the error is of the JS minifier
    i can do that tomorrow and let you know, but the big problem is that the logged users havings the problems and not the guests

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, try this code snippet to disable AO for _all_ logged in users;

    add_filter( 'autoptimize_filter_noptimize', 'loggedin_noptimize', 10, 0 );
    function loggedin_noptimize() {
    	if ( is_user_logged_in() ) {
    		return true;
    	} else {
    		return false;
    	}
    }
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Optimize for logged in users not working’ is closed to new replies.