Hi, I see that uam loads css and js in every request, but it seems not to be needed. in user-access-manager.php on lines 303 and 304 I simply commented out the lines
add_action('wp_print_scripts', array($oUserAccessManager, 'addScripts')); add_action('wp_print_styles', array($oUserAccessManager, 'addStyles'));
this stops loading the uam css and js in the frontend, and I see no problems, everything seems to work. In the settings page I set everything to “no” besides “Authors always has access to own posts/pages” and “Lock recursive” – do you see any problem that might occur with the css and js loadig deactivated in frontend?
If not, why is it there at all?
Thanks for your attention!
- The topic ‘CSS and JS loading on every page request – needed in frontend?’ is closed to new replies.