FRESNO, Calif. (AP) — Hundreds of residents streamed back into their mountain homes Wednesday as firefighters announced they had made critical gains against a wildfire charging across the hillsides outside Yosemite National Park.

An evacuation order remained in effect for about 100 homes near the fire northwest of Midpines, a small town about a dozen miles from the protected wilderness. By Wednesday evening, the 50-square-mile blaze was 40 percent contained.