DEV Community

Cover image for With CSS media queries, hidden doesn’t mean inactive.
Myroslav Martsin
Myroslav Martsin

Posted on

With CSS media queries, hidden doesn’t mean inactive.

The component still renders, runs lifecycles, and keeps subscriptions alive.
All that background logic quietly eats memory and slows your app down.

NGX-MQ solves the problem.
Signal-based media queries that prevent rendering before it starts — nothing runs unless it truly matters.

Give it a try — your app will thank you! 🚀

npm: https://www.npmjs.com/package/ngx-mq
GitHub: https://github.com/martsinlabs/ngx-mq

Top comments (0)