Show loader by template.
Show loader when page is changed by ajax.