[Question] Best way to include JavaScript Libraries?

i think this can be solution How Can i add app_include_js for Single DocType?

but unlike rmehta posted, this method require second argument ‘callback’. im not sure how to impalement but i will check it.