The script will now only load once even if you call the view file several times