I am using the following code to add terms to user profile but the coding is loading everywhere. What is the recommended way to optimize and load it only where we need it (maybe on profile page only)?
What @Jackky recommended is correct. However, in that case you can't use rwmb_meta for users in the frontend (yes, it works). get_user_meta is totally fine.
I got it. The thing is we couldn't load the meta box or fields for a specific page in admin. Because the code need to run not only when showing fields, but also when saving fields. And the saving part requires to be run on admin in general.