Sample-accurate, gap click, accents per beat.
Metronome
A Web Audio metronome scheduled ahead of the browser's clock, so it never drifts when the tab is busy. Set accents per beat, choose the subdivision, and use gap click to drop the click out for a bar or four.