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

    (@optimizingmatters)

    ah, is that quiz on a custom page type maybe? if so, what is it named?

    Thread Starter wphyp

    (@wphyp)

    In the link it is listed as /quizzes/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmmm, that might and might not indicate what the CPT might be .. could you ask the plugin developer what the CPT is?

    in the mean time you can disable the quiz(zes) being optimized using this code snippet;

    add_filter('autoptimize_filter_noptimize','no_quiztimize',10,1);
    function no_quiztimize( $flag_in ) {
      if ( strpos( $_SERVER['REQUEST_URI'], 'quizzes/') !== false ) {
        return true;
      } else {
        return $flag_in;
      }
    }
    Thread Starter wphyp

    (@wphyp)

    OK. I have 2 choices when I try to optimize JS. Which 1 is better?

    https://prnt.sc/Dn8xSpjq88Qn

    https://prnt.sc/YCBZ0SMNlFLg

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    default choice (and best in most conditions) is “don’t aggregate but defer” + “also defer inline JS” ??

    Thread Starter wphyp

    (@wphyp)

    Thank you. I am awaiting a response from the plugin developer as to what the CPT is. Did you notice CPT in one of the error codes?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, the error codes are JS errors (in the browser), whereas CPT’s typically “live” in PHP code on the server.

    Thread Starter wphyp

    (@wphyp)

    The response from the plugin developer “We do not support setting up CPT in LearnPress”

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    in that case I would advise to settle for the code snippet I shared earlier wphyp ??

    Thread Starter wphyp

    (@wphyp)

    Thank you.

    Thread Starter wphyp

    (@wphyp)

    Thanks

Viewing 11 replies - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.