Support » Plugin: Breeze - WordPress Cache Plugin » How we can include CSS & JS to footer?

  • How we can include CSS & JS to footer?
    Directly in wordpress i know how.
    But Breeze is include files in Header.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Hi
    You can move js file in footer through Move JS files to footer in Advanced Option tab.

    Without plugin? By functions.php

    example:

    wp_register_script(
        'fotorama-wp.js', // 
        FOTORAMA_PLUGIN_URL . 'fotorama-wp.js', //
        array(), // 
        1, // 
        TRUE // 
    );
    Plugin Author adeelkhan

    (@adeelkhan)

    you can use WP hooks like the following
    wp_enqueue_style( ‘css-handle’, ‘filename.css’, false );
    wp_enqueue_script( ‘js-handle’, ‘filename.js’, false );

    call in your custom functions in functions.php

    I’m looking to do the same thing. I think. Breeze offers two options: “Move JS files to footer” and “JS files with deferred loading.” GT Metrix wants me to defer parsing, so wouldn’t that be the latter option?

    I see Breeze wants me to list the actual URL’s I want deferred to be loaded at the end.
    In GTMetrix I see a list of over 50 of them. Do I copy all of them?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How we can include CSS & JS to footer?’ is closed to new replies.