stats_js_load_page_via_ajax

Normal page load.

Description

stats_js_load_page_via_ajax(); 

Usage

  1. if ( !function_exists( 'stats_js_load_page_via_ajax' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = stats_js_load_page_via_ajax(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/stats.php  
  1. function stats_js_load_page_via_ajax() { 
  2. ?> 
  3. <script type="text/javascript"> 
  4. /* <![CDATA[ */ 
  5. if ( -1 == document.location.href.indexOf( 'noheader' ) ) { 
  6. jQuery( function( $ ) { 
  7. $.get( document.location.href + '&noheader', function( responseText ) { 
  8. $( '#stats-loading-wrap' ).replaceWith( responseText ); 
  9. } ); 
  10. } ); 
  11. /* ]]> */ 
  12. </script> 
  13. <?php