• darrylldev

    (@darrylldev)


    Hey,
    Thanks a lot for this plugin, it’s come in very handy πŸ™‚

    Got a couple questions to help me integrate it with a system I’ve made.
    I’m currently running some JavaScript and trying to trigger it after the My Favourite’s list loads in.

    Is there any way to speed up how fast the My Favourite’s list (shortcode) loads in?

    How can I trigger my JavaScript directly after the shortcode loads?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello, @darrylldev
    Thank you for your rating and question.

    #Your JavaScript directly after the shortcode loads

    Perhaps you can do it by writing the following.

    jQuery(document).ajaxStop(function () {
        if (jQuery("#ccc-my_favorite-list").find(".list-ccc_favorite").length > 0) {
          alert("Your JavaScript"); /* Your JavaScript code */
        }
    });
    

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Triggering Javascript on List Load’ is closed to new replies.