Hai, elgger's how can i load all the jquery from google or other public cdns. Any one plz help me out with this
thanks in advance.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- balamurali@balamurali
balamurali - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Joe Beck@MeanGenius
Joe Beck - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.elgg_unregister_js('jquery');
elgg_register_js('jquery_cdn', 'cdn_url', 'head');
elgg_load_js('jquery_cdn');
thanks for your reply wengalli team. Actually what i meant is to totally load whole jquery js's from cdn. Thanks once again.
google has your answer ;-) they own the jquery cdn!
Just use this in your HTML:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js">
</script>
webgalli gave the correct answer for 1.8
unregister the local versions, register libraries for the cdn versions, call elgg_load_js to include your cdn libraries.