Fixed template preload
https now injected in dev build