function to list enquened scripts on this page

functions.php

function my_enqueued_scripts(){
    global $wp_scripts;
    print_r($wp_scripts->queue);
}

code in header.php after the opening of the body

<?php my_enqueued_scripts(); ?>

example of result:

Array
(
    [0] => jquery_scrollto
    [1] => mailchimpSF_main_js
    [2] => jquery
    [3] => popoverselective
    [4] => esl-slideshow
    [5] => wc-chosen
    [6] => wc-checkout
    [7] => woocommerce
    [8] => wc-cart-fragments
    [9] => twentytwelve-navigation
)

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *