LOS ANGELES — Thousands of flights have been delayed, and hundreds more were canceled throughout the U.S. because of bad weather across the country, in addition to staffing shortages at airlines.

It’s all building up to what’s expected to be a hectic summer weekend, approaching the Fourth of July.