Why does my form load slower when I view it from localhost?