Ichigo Ichigo
asked 10 years ago

With a high traffic site 2K – 3K visitors a day, doesn’t the “loading more posts” javascript loading when scrolling down takes some CPU?

Is it possible to change that to normal pages such as, 1,2,3,4,5,6,7,8,9,10? or does it require some serious coding?

1 Answers
answered 10 years ago

To resolve this issue, you can  remove the following code in the functions.php file line 93:

  wp_enqueue_script( 'wallpress_jquery_infinite', get_template_directory_uri().'/assets/js/jquery.infinitescroll.min.js', array( 'jquery' ) );

– You can use the wp-pagenavi plugin, please open the home.php file then add the following code in the line 41:

 <?php wp_pagenavi(); ?>

See the screenshot:  Hope this helps !

Ichigo Ichigo
replied 10 years ago

Thanks a lot!!!! it worked!!!!

Powered by DW Question & Answer Pro