Move Latex support to after_foot.html and speed up with InstantClick