Nik Grey Posted March 25, 2014 Author Share Posted March 25, 2014 It's fixed, Just about the same code as Brian suggested for the main.php file: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/headjs/0.99/head.min.js"></script> Just the other way around ! Why does One work and the other doesn't ? this is the reason I cant get my head around coding - it's not logical to me. I'm happy now Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 25, 2014 Share Posted March 25, 2014 Basically, if one looks at the 'primer book' of coding, the repeating "Hello World" lesson goes like this: 1. Print "Hello World" 2. Goto 1 It really would not work with the statements switched. We know that jQuery is "real" javascript and adds all the extensions and foundation so that other scripts that are written in jQuery will be understood. What we don't know without doubt is, what is actually the headjs/0.99/head.min.js? It it "real" javascript, of does it rely on jQuery? If it relies on jQuery, then having that script run, and when run, load the actual jQuery foundation (as the data-headjs-load parameter), should have crashed something big time. Anyway, glad that's sorted. We are waiting with anticipated breath on the next tweak to your project. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.