thauber / django-schedule

A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.