Weak or no spark initally, cranking fills the exhaust with fuel/air and then when it does spark, BOOM.
Pull the plugs after riding for a while and check for spark. Suspect bad plug wires, bad coil, or maybe a flakey CDI. Check the electrical box for water and all internal connections. Also ohm...