How to detect whether a user is on homepage using javascript/jquery in Osclass classifieds script -


how detect whether user on homepage using javascript/jquery in osclass classifieds script.

i know similar function available in osclass php helpers i.e. osc_is_home_page() need in javascript/jquery.

enqueue script if home page. more helpful.

if(osc_is_home_page()){      osc_register_script('script_id', 'scripturl', 'dependency');      osc_enqueue_script('script_id');   } 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -