conditional apply css from js

Page1's css is now alive.

Page2's css is now alive.

The Result CSS:

The CSSOM: