Title: Any javascript refresh without shortcode
Last modified: June 11, 2018

---

# Any javascript refresh without shortcode

 *  [OK](https://wordpress.org/support/users/angelok1979/)
 * (@angelok1979)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/any-javascript-refresh-without-shortcode/)
 * Author propose many shortcodes for javascript refreshes. But it does not help.
   I propose add callback function in plugin. Now I make it for me:
 * 1. file ajax-page-loader.js add somefunction in 265 line
 *     ```
       jQuery('#' + AAPL_content).css("left", "");
       jQuery('#' + AAPL_content).fadeIn("slow", function() {});
       somefunction();
   
       },
       ```
   
 * 2. now you can use this callback in your theme
    function somefunction(){ alert(“
   Hello World”); }

The topic ‘Any javascript refresh without shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-ajax-page-loader_bcd4a4.
   svg)
 * [Advanced AJAX Page Loader](https://wordpress.org/plugins/advanced-ajax-page-loader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ajax-page-loader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ajax-page-loader/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ajax-page-loader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ajax-page-loader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ajax-page-loader/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [OK](https://wordpress.org/support/users/angelok1979/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/any-javascript-refresh-without-shortcode/)
 * Status: not resolved