A major limiting factor of optical imaging in biological applications is the diffusion of light by tissue, preventing focusing at depths greater than ~1 mm in the body. To overcome this issue, phase-based wavefront shaping alters the phase of sections of the incident wavefront to counteract aberrations in phase caused by scattering. This enables focusing through scattering media beyond the optical diffusion limit and increases signal compared to amplitude-based compensation. However, in previous studies, speed of optimization has typically been limited by the use of a liquid crystal spatial light modulator (SLM) for measurement and display. SLMs usually have refresh rates of less than 100 Hz and require much longer than the speckle correlation time of tissue in vivo, usually on the order of milliseconds, to determine the optimal wavefront. Here, we present a phase-based iterative wavefront shaping method based on an onaxis digital micromirror device (DMD) in conjunction with an electro-optic modulator (EOM) for measurement and a fast SLM for display. By combining phase modulation from an EOM with the modal selection of the DMD, we take advantage of DMDs higher refresh rate, approximately 23 kHz, for iterative phase measurement. The slower SLM requires one update for display following the rapid determination of the optimal wavefront via the DMD, allowing for high-speed wavefront shaping. Using this system, we are able to focus through scattering media using 64 modes in under 8 milliseconds, on the order of the speckle correlation time for tissue in vivo.