Disable AnsPress loading on all pages

5.04K viewsGeneral
1

I have noticed that AnsPress loads all of it’s contents on every WordPress page, even if it doesn’t need to. This includes a bunch of js and css files that might never be used. This is very bad for page loading speeds. I’m running a site that displays some heavy content and having AnsPress load on every page really isn’t making it any better.

Is there any way to set AnsPress to only load it’s required files when the plugin is actually being displayed? If not, adding this feature would make my life a lot easier!

Thank you.

@Rahul Please make this a top priority, right now AnsPress is loading 10 JavaScript files and 6 CSS files on EVERY WordPress page, even the pages that don’t use AnsPress at all.

1

Yes, its already in top priority. I am trying to find a better solution without breaking any 3rd party extension.

Currently we are testing JS loading but this have some issue while using with minify plugins. After we solve this issue, we will push this to github.

Thank you, will definitely donate for this great plugin!