Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Plugins Scripts loading only on required pages

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Plugins Scripts loading only on required pages

  • This topic has 4 replies, 2 voices, and was last updated 13 years, 8 months ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 17, 2011 at 3:20 pm #2424
    coolvibe
    Member

    I want to insert conditional tags on the scripts inside plugins WP-emember and ecommerce so that pages/posts which have no relation to these plugins do not unnecessarily get over burdened by these scripts.

    can you suggest locations in your plugins whereever scripts are loaded in the head so that I can add conditional tags like is_home() or is_post(102), something like these.

    I need your advice if this is the right way to optimize your plugins.

    Thanks

    September 18, 2011 at 1:43 am #36724
    admin
    Keymaster

    For WP eStore check the following function

    function wp_eStore_load_libraries()

    For WP eMember check the following function:

    function load_library()

    I can see what you are trying to so thought I would mention this. You get good performance too if you combine all the JavaScripts. This page has more details:

    https://support.tipsandtricks-hq.com/forums/topic/speed-suggestion

    October 1, 2011 at 6:19 pm #36725
    coolvibe
    Member

    Off course! I use yslow plugin in mozilla.

    October 5, 2011 at 3:49 am #36726
    coolvibe
    Member

    Thanks Admin!!

    I need a little more help. I have created a custom form on my site and named it wp_emember_loginForm, now when the user enters the right userid/password combination everything works fine.

    But in case user enters the wrong combination I want the user to be redirected to the original login “page” (with the error message) where I have embedded the login form which does all the error checking.

    Please suggest how to go about it.

    October 6, 2011 at 3:04 am #36727
    admin
    Keymaster

    You won’t be able to send the login error message across to the default eMember login widget. If you have a customized login form then I suggest you handle everything from there or simply redirect to the eMember’s login form and tell them to try it again there.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ