Is there a way to write javascript code without using load()
function and jquery's .ready()
to execute javascript code? If yes then how can we do this? Please provide some tutorial links for this kind of code.
Asked
Active
Viewed 140 times
0

Om3ga
- 30,465
- 43
- 141
- 221
1 Answers
2
yes but why would you want to? Put your scripts at the bottom before the closing </body>
tag and you won't need to use document.ready()
.
Links:
-
Do I need to use load function while following this way? – Om3ga Aug 14 '12 at 05:38
-
depends what you're doing with your code... Can I ask why you want to take this route? – ahren Aug 14 '12 at 05:39
-
I want to call functions which are inside another js file. when use clicks on link or button then those functions will fire. Currently I am using `.ready()` function where I am getting all the click events from user. So because of this I am using a lot of code in .read() function. – Om3ga Aug 14 '12 at 05:47