Hi. I have lots of custom php and js functions that need to be ran or not depending on the user role.
Currently I’m loading them all for all users but each function does the role check as the first line and continues if the role matches.
Is there a more efficient way ?