This is mostly inspired by the latest supercharged. Since we know beforehand that only 1 view is selected by iron-pages, it would be nice to take advantage of css containment just like explained in the video.
I have made the change locally and tried to debug potential issues and measure the performance improvement. Sadly the improvement seems random and only working with contain: strict; which results in a stylistic breaking change on the demo page. At this moment I am not familiar enough with the specification to understand why it breaks existing code and what other non-breaking options there are. Maybe Surma or Paul could explain that.
Description
This is mostly inspired by the latest supercharged. Since we know beforehand that only 1 view is selected by
iron-pages
, it would be nice to take advantage of css containment just like explained in the video.I have made the change locally and tried to debug potential issues and measure the performance improvement. Sadly the improvement seems random and only working with
contain: strict;
which results in a stylistic breaking change on the demo page. At this moment I am not familiar enough with the specification to understand why it breaks existing code and what other non-breaking options there are. Maybe Surma or Paul could explain that.