Team: How to prevent styles and scripts loading on pages without plugin

Q&ACategory: PluginTeam: How to prevent styles and scripts loading on pages without plugin
Max asked 1 year ago

On all pages throughout my site I see the following code in the header, regardless of the Team plugin being used on that page. Can the code not be limited to pages where the plugin is loaded? The additional resources for every other page on the site are not insubstantial. 
<link rel=’stylesheet’ id=’team_front_style-css’ href=’/wp-content/plugins/team/css/style.css?ver=4.3′ type=’text/css’ media=’all’ />
<script type=’text/javascript’ src=’/wp-content/plugins/team/js/scripts.js?ver=4.3′></script>
<script type=’text/javascript’ src=’/wp-content/plugins/team/js/jquery.mixitup.min.js?ver=4.3′></script>
<script type=’text/javascript’ src=’/wp-content/plugins/team/js/jquery.mixitup-pagination.js?ver=4.3′></script>
<script type=’text/javascript’ src=’/wp-content/plugins/team/js/masonry.pkgd.min.js?ver=4.3′></script>
<script type=’text/javascript’ src=’/wp-content/plugins/team/js/isotope.pkgd.min.js?ver=4.3′></script
Thank you.
 

2 Answers
Hasan Staff answered 1 year ago

Welcome to our forum,
Thanks for the report issue, this could be possible.
We will try to fix this issue next version published.
 
Best Regards

Justin answered 1 year ago

Any update on this? after i installed this plugin it broke another because of java script errors on this plugin.