Historically, the biggest barrier to buying swimwear online was the uncertainty of fit. However, technology has largely bridged this gap. Modern e-commerce sites now utilize:
The you're after (sporty, minimalist, high-waisted, etc.)
Real-world feedback allows shoppers to see how a suit performs on bodies similar to their own.