Enqueue custom JS or CSS only if BuddyForms content is displayed
BuddyForms Forms and Posts Listings can be included in various ways. With shortcodes or template tags.
To make suer that BuddyForms related js and css is only loaded if needed use the `buddyforms_front_js_css_enqueue` hook.
Its the best practice to avoid conflicts with other scripts and for the best performance of your site.
Your script will only be loaded if its needed.
This is an example function of the BuddyForms Hierarchical Posts Extension: