• Resolved pfaustino

    (@pfaustino)


    I’m using a plugin (Views from wp-types.com) to display a grid of custom post types. Most of the time it’s OK but on a page that has lightbox popups for each grid item, the page takes 2 minute to fully load.

    Upon closer examination, I found that Top 10 kept loading jquery plugin over and over for each grid item.

    When I turned off the plugin the page rendered in 4 seconds.

    https://ww.wp.xz.cn/plugins/top-10/

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    Hi,

    Unfortunately, I’m not in the best position to test out Views given that it is paid. It appears to me that the_content filter that Top 10 hooks onto is being called on every page load because it’s a “page” with the grid of custom post types.

    You could disable Top 10 from tracking the post types that you created totally (a feature I’ll add in a future version).

    Before Line 136 of top-10.php, please add:

    if ( 'PostTypeNameHere' == get_post_type( $post ) ) {
    			$include_code = false;
    		}

    Change PostTypeNameHere to the name of your post type.

Viewing 1 replies (of 1 total)

The topic ‘Top 10 plugin causing massive slowdown’ is closed to new replies.