Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    If you don’t need these 2 features, you can deactivate the Photon module and the Infinite Scroll module under Jetpack > Settings in your dashboard. That will dequeue both files from your site.

    I hope this helps.

    Thread Starter Master

    (@sceko)

    Know for deactivate and did possible deactivate witch functions.php my bbpress forum use this 2 functions and i not infinity.js and photon.js use for bbpress

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m not sure I understand. Would you like to dequeue these 2 files on some specific areas of your site, and keep using them on other pages?

    Thread Starter Master

    (@sceko)

    yes, i font using on all page but not on bbpress forum

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Something like this should work:

    function jeherve_dequeue_photon() {
    	wp_dequeue_script( 'jetpack-photon' );
    	wp_dequeue_script( 'the-neverending-homepage' );
    }
    add_action( 'wp_enqueue_scripts', 'jeherve_dequeue_photon' );

    You will of course need to add a conditional tag to only dequeue the files on the forums page. Something like is_bbpress() should work.

    Thread Starter Master

    (@sceko)

    Thanks, i know is

    if (class_exists('bbPress')) {
    if (is_bbpress()) {
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Help witch infinity.js and photon.js’ is closed to new replies.