WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Printstyle Plus
Loading plugin after loading content (2 posts)

  1. Old Cow
    Member
    Posted 1 year ago #

    Genesis Printstyle Plus is loading before the site/page is fully presented to the visitor in the browser. What can I do to have the plugin load after everything else is displayed/loaded to decrease load-time, and make sites faster?

    http://wordpress.org/extend/plugins/genesis-printstyle-plus/

  2. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @Old Cow:
    Sorry, I somehow missed your post!

    If it is still relevant:
    Loading CSS in the header is the best solution. However, you can remove the hook with the stylesheet and add it elsewhere (maybe the footer...).

    Remove:

    remove_action( 'wp_enqueue_scripts', 'ddw_gpsp_add_hook' );

    Re-add elsewhere:

    add_action( 'genesis_after', 'ddw_gpsp_add_hook' );
    
    add_action( 'wp_footer', 'ddw_gpsp_add_hook' );

    I hope this helps.

    Thanks, Dave :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic