-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move pseudo-user stylesheets out of contentscript.js
#2984
Comments
As of writing, with default filter lists:
For instance, even with Fanboy Annoyance:
Given this, I will no longer make uBO distinguish between flavors of high generic filters, they will be all treated by the same code path. This will simplify the fix required here, which I want to get out before Firefox 57 stable is released. |
from https://raw.githubusercontent.com/azet12/PopupBlocker/master/PPB.txt is reported as I mean - in details dialog. On list this is |
Here https://www.wp.pl/ when scrolling on 1.14.16 I see ads collapsing. On 6112a68 I see them loading. Default filters + POL No change in 4f7aab6 |
Do you know which specific filter is supposed to be at work there? |
I think:
I see them in logger, but they are not applied. |
I can reproduce, with some of the ads on this page. For me ads flickers, basically they are hidden, after some delay they are shown again and hidden again after delay. Easily viable when scrolling. EDIT: I need to test with older release tho |
Those filters assume the ads will be in the first |
Ok I think I understand what is going on. The POL maintainer(s) created this filter:
Of course, the web site does not create the Edit the filter to |
Reported MajkiIT/polish-ads-filter#4080 |
@gorhill Filter issue is fixed in upstream. wp.pl is one of the biggest polish website (top 7 according to Alexa). Would you please take a look at performance on this site? They update DOM heavily on scroll. The side bar is updated. I captured two profiles: https://perfht.ml/2xXzWdZ 1.14.16 https://perfht.ml/2xYevsZ noroundtrip (e1acf6d) To make this profile:
My configuration is the same as we discussed in the other topic, screen for reference. Let me know if you need more info. I think this is great page to benchmark, because it has a lot of advertisements, a lot of dynamic content and is one of the top websites in Poland. So a lot of people (uBO users) hit this page everyday. EDIT: |
It's the |
Just to add, specifically I see a |
Indeed it spends time in PSelectorMatchesCSSTask.prototype.exec in both profiles. Could it be that injecting user css causes I will ask list maintainers to try remove
|
I don't see the profile in 1.14.16 to be a lot faster. Processing There is no way uBO's injected styles are involved, the site's own CSS is quite certainly magnitude larger than what uBO adds. The site itself contributes to its demise by shuffling around DOM elements while the page loads, this probably contributes to the whole issue of |
Thanks for your time. I will resolve this with list maintainers as there is clearly an improvement to be done in filters. |
I tried to create an exception filter for that |
So I fixed my exception filter issue, and yes, removing the |
As part of the refactoring I will add code to stop processing the procedural filters which are too expensive. |
@gwarser I see the site |
I don't think they need workers. They "encrypt" all links server-side, so all looks the same (base64 encoded random(?) bits). |
Firefox webext and legacy supports real user stylesheets, so these versions should not suffer whatever overhead incurred by any of the code necessary for pseudo-user stylesheets required for browsers which do not support real user stylesheets (Chromium, Edge, Safari).
The text was updated successfully, but these errors were encountered: