Javascript loaded in head against Pinax standarts
jpic opened this issue · comments
For Pinax: Javascript files should be loaded in the extra_body block.
The reason for this is that loading javascript blocks the browser's rendering. By having javascript just before , the browser will have the DOM fully loaded when it will start loading javascript.
Also, jquery is loaded at project template level, so Pinax does not require to load jquery again in apps.
extra_body - no problem.
To eliminate duplicate loading we'd need a way to find out whether schedule is loaded within Pinax or not - any ideas?
I'm not sure whether this is an issue anyway, the browser will just receive 304 on the second attempt.