A good example of optimizing web performance is resizing images in the browser before uploading, rather than sending large files over the wire and resizing them on the back end. While back-end validation is important, it often makes more sense to perform resizing in the front end for improved efficiency.