You can generally recognize when a web site requires this type of authentication because, after requesting the page, a small box will pop up requesting a username and password.
A minor performance hit is incurred, however, when tidying. In cases where performance is critical Don't Tidy HTML should be selected.