The benefits of CSS-only loaders are:
- Good browser support
- No additional HTTP requests
- Smooth animations
- Can be applied with a single CSS class
- Easy to customize (size, color, width, speed, etc.)
Check out my pen to see how it works and grab the source.