jquery - Access function in a JS page from another JS page on page load -


let name a.js , b.js.

on page load of aspx page, trying load js in order a.js,b.js.

i used method in b.js declared in a.js. getting error function undeclared alert in console.

but when tried alerting either b.js or a.js, script working fine. taking method , page good. why so?

what need making work without alerting?

scripts loaded asynchronously, never know file load first. 1 less bytes.

if want load scripts in order provide, use library requirejs.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -