4 ms·
It’s probably also worth mentioning in the section about image performance: 1. The source element also accepts a media attribute with the same syntax as CSS me
by eyelidlessness 6y ago
It’s probably also worth mentioning in the section about image performance:
1. The source element also accepts a media attribute with the same syntax as CSS media queries; the first match (media + type) wins, so typical usage is largest > smallest. If you enlarge the window it’ll automatically load larger images. (Annoyingly, this is not supported on video>source.)
- When styling picture elements in CSS, you actually need to select the img tag. This still trips me up time to time.