• I have problem with jetpack photon and this theme – site load image localy instead of photon cdn, and after some hours of test i see where is problem.

    “Load images on scroll” when this option is enabled site load images localy instead of photon cdn. Please describle this problem in theme documentation if this is normal and not is bug – this will save other users time and problems.

Viewing 1 replies (of 1 total)
  • Hello borisov87,
    thanks for reporting this, it’s most likely an undesired behavior (see compatibility issue :D).
    Could you try adding the following code to your child-theme functions.php?

    add_action('after_setup_theme', 'smartload_photon_fix', 100);
    function smartload_photon_fix(){
      if ( method_exists( 'TC_utils', 'tc_opt') && method_exists('TC_utils', 'tc_parse_imgs') && esc_attr( TC_utils::$inst->tc_opt( 'tc_img_smart_load' ) ) ) {
        remove_action('the_content', array(TC_utils::$inst, 'tc_parse_imgs'), 20 );
        add_action('the_content', array(TC_utils::$inst, 'tc_parse_imgs'), PHP_INT_MAX );
      }
    }

    should fix it.

Viewing 1 replies (of 1 total)
  • The topic ‘Customizr bug with photon and Load images on scroll’ is closed to new replies.