Remove attributes
-
These <img> attributes associated with the dominant color feature should be removed:
- data-dominant-color=”63646d”
- data-has-transparency=”false”
- data-has-transparency=”true”
And inline CSS can be reduced from:
img[data-dominant-color]:not(.has-transparency) { background-color: var(--dominant-color); }
To this:
img:not(.has-transparency) { background-color: var(--dominant-color); }
And it all adds up, especially when you have plenty of images. The less code, the better performance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove attributes’ is closed to new replies.