• The section of the FAQ “Execute a function when all scripts are loaded” didn’t work for me when I tried to do as in the example:

    add_filter( 'wdjs_before_end_lab', 'call_shitty_code' );
    function call_shitty_code( $end ) {
        $end .= '.PluginShittyCode()';
        return $end;
    }

    I figured it out, and suggest updating the example to read:

    add_filter( 'wdjs_before_end_lab', 'call_shitty_code' );
    function call_shitty_code( $end ) {
        $end .= '.wait(PluginShittyCode)';
        return $end;
    }

    https://www.ads-software.com/plugins/wp-deferred-javascripts/

Viewing 1 replies (of 1 total)
  • I still don’t get it. I mean, where should I add that code? Should I add it to the file “wp-deferred-javascripts.php” editing it with the editor? If yes, at end? And.. something like this:

    add_filter( 'wdjs_before_end_lab', 'jquery.js, bootstrap.min.js' );
    function call_shitty_code( $end ) {
        $end .= '.wait(jquery.js, bootstrap.min.js)';
        return $end;
    }

    ?

    Thank you a lot in advance for any help! ??
    (unfortunately I’m a little noob with PHP)

Viewing 1 replies (of 1 total)
  • The topic ‘FAQ update proposed’ is closed to new replies.