WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-PJAX

Makes WordPress a lot faster using PJAX (PushState + AJAX) for loading content.

The plugin needs to control whether the header and footer should fire or not for every request. Therefore you need to make some small changes in your theme for this plugin to work properly. This what you need to do:

  1. Header. Put this line of code in the top of every header file(any header*.php file) in your theme(before any code or output)
<?php if(function_exists( 'get_pjax_header' )) if(get_pjax_header()) return FALSE; ?>
  1. Footer. Put this line of code in the top of every footer file(any footer*.php file) in your theme(before any code or output)
<?php if(function_exists( 'get_pjax_footer' )) if(get_pjax_footer()) return FALSE; ?>
  1. Sidebar. Put this line of code in the top of every sidebar file(any sidebar*.php file) in your theme(before any code or output). This is currently not used, but it will probably be used in later versions. So for safe upgrades in the future, I recommend that you do this.
<?php if(function_exists( 'get_pjax_sidebar' )) if(get_pjax_sidebar()) return FALSE; ?>
  1. Install and activate the plugin as usual.

  2. Configure the plugin and enable it. The configuration page can be found under 'WP-PJAX' in the settings menu in WP-Admin. Basic instructions on how to configure is provided on the configuration page.

  3. That should be it! I Hope you will enjoy the plugin and the performance boost!

Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-2
Downloads: 1,260

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 50,2,1
0,1,0