Simon Pieters
unread,Feb 2, 2015, 2:17:50 PM2/2/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Erik Dahlstrom, PhistucK, blink-dev, Stephen Chenney
On Mon, 02 Feb 2015 17:11:14 +0100, Simon Pieters <
sim...@opera.com> wrote:
> On Mon, 02 Feb 2015 15:03:18 +0100, PhistucK <
phis...@gmail.com> wrote:
>
>> Then the index search would give us a clearer picture. I hope some
>> Googler
>> can get the results, hopefully with a shallow verification of no
>> try/catch/method existence verification. :)
>
> On github search I see 21,225 results in just .js files:
>
> https://github.com/search?l=javascript&q=suspendRedraw+OR+unsuspendRedraw+OR+forceRedraw&type=Code&utf8=✓
>
> Not all of them are relevant, but it's easy to find unconditional
> invocations.
Just "suspendRedraw" gives 1,801 results.
https://github.com/search?l=javascript&q=suspendRedraw&ref=searchresults&type=Code&utf8=✓
Excluding "try" results in 192 matches, but this is obviously blunt since
a script can use try/catch for other things.
https://github.com/search?l=javascript&q=suspendRedraw+NOT+try&ref=searchresults&type=Code&utf8=✓
> In httparchive:
>
> SELECT page, url, body
> FROM [httparchive:runs.2014_08_15_requests_body]
> WHERE REGEXP_MATCH(body, r"\b(un)?(suspend|force)Redraw\b")
>
> 652 rows
>
> SELECT page, COUNT(*) as num
> FROM [test.suspendRedraw]
> GROUP BY page
> ORDER BY num desc;
>
> 633 rows
>
> There are 129,236 pages in the dataset, so ~0.05% of the pages match.
Oops. ~0.51%.
I looked at some of them and it seems there is some amount of custom
forceRedraw() functions which is not relevant.
Searching for just ".suspendRedraw(" gives only 7 matches (~0.005%).
SELECT url
FROM [httparchive:runs.2014_08_15_requests_body]
WHERE REGEXP_MATCH(body, r'\.suspendRedraw\s*\(')
http://www.virtual-expo.com/wp-content/themes/halfscreen/design/js/libs/cluster.js
http://www.ait-themes.com/wp-content/themes/aitthemes/design/js/libs/cluster.js
http://www.mojotech.com/js/vendor/svg.js
http://www.muschealth.org/js/svg/svg.js
http://www.ntglobal.org/wp-content/themes/creator/design/js/libs/cluster.js
http://www.muschealth.org/js/svg/svg.js
https://static.4virtuals.com/js/22a9a01b.main.js