It just discovered that my script.js in my theme is ignored for anonymous users. But only on certain pages. When logged in everything works on all pages. When logged out things only work in some content nodes. For example I have a navigation menu outside of the system menu. It's an exposed block from a view, that I use as a navigation menu to mirror the taxonomy (the taxonomy module does not work for me). I use the theme's script.js to collaps and expand menu items as appropriate. But this is ignored when logged out on most pages (but as I said it works when visiting some content nodes). What is this?
I also discovered that flexslider doesn't wok when logged out. But it works in content nodes... I must be missing something.
I have tried adding:
drupal_add_library('system', 'jquery', 'ui.sortable', 'ui', 'drupal.collapse');
... in my template.php (in template_process_page, and I also tried to add it in template_preprocess_html). In the Firebug "Net" tab I can see that my script,js is loaded together with jquery and a whole bunch of js files. So if everything is loaded, why is it ignored on certain pages when logged out? Any ideas?
Edited... I also have tried to add break points in my script.js file and it is clear that the script is ignored all together on certain pages.