CSS faster than page loads?

Hi guys!

I made an firefox extension which modify the CSS for a website, my problem is that the CSS it is loaded slower. I used Stylus extension till now and this is fast, when I load websites with modified css, the CSS it is loading in the same time with the website. How can I make my extension prioritize my CSS so fast? I just made a manifest.json which call my css file, when matches the website… but it is a little bit slower, I see the website loads, the website CSS and then, after few moments (1-2 seconds maximum), loads my CSS from the extension…

Thank you in advance.

I found out. Thanks!

@gabriel.catalin.truta-- Can you share the answer, in case it comes up again later, so that people who find this thread can get the answer? Thanks!

1 Like

You need to change the run_at key of the relevant content_scripts entry.