Conditional loading
Conditional loading
predrag.music
Posts: 8Questions: 0Answers: 0
How to load datatables from Microsoft CDN and if it doesn't load from CDN then load from local environment. Something like with jQuery:
[code]
!window.jQuery && document.write(unescape('%3Cscript src="http://www.my_domain.com/javascript/jquery.min.js'))
[/code]
but for DataTables.
Thnx.
[code]
!window.jQuery && document.write(unescape('%3Cscript src="http://www.my_domain.com/javascript/jquery.min.js'))
[/code]
but for DataTables.
Thnx.
This discussion has been closed.
Replies
Good thinking that :-)
Allan