if I want to change jquery to cdn, i go in
function noelab_theme_init() {
and I put
$google_cdn_jquery_url = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js';
elgg_register_js('jquery', $google_cdn_jquery_url, 'head',1);
the problem is now for me, concatenation
if I put footer then there is a conflict, like with tinymce, so I have to put all js in footer with priority.
if I want only to change cdn for some javascript, how can I put then all in footer with same default priority?
looking in facebook_theme, there is this in default page
$js = elgg_get_loaded_js('footer');
foreach ($js as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php
}
?>
but it hasn't effect. Infact if I give to jquery_cdn, footer, priority 1, and that script in default page, jquery will be in the end list of js....
I need some clear advice :-)
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.
- Krishna Shetty@KrishnaShetty
Krishna Shetty - 0 likes
- Brett@brett.profitt
Brett - 0 likes
You must log in to post replies.Is there any map plugin which works for elgg-1.8.0b2?
thanks
@Krishna - This question has nothing to do with the current thread. Please stay on topic.
@lord55 - What is the conflict you're getting? You can't put everything at the same priority--the system has to load one file before the other. There's a bug that causes the load order to be messed up if you register with the same priority.