I have approx 8k lines of code within a $(document).ready for a web app I am developing and I am now trying to partition the code up so it’s easier to maintain.
I have tried including script tags without success
<script type='text/javascript' src='./js/test.js'>{{html "</sc"+"ript>"}}
Can anyone advise either how to include script tags within document ready or how to partition up the javascript.
Thanks.
Found the answer –
$.getScript('./js/test.js')