Media
- Tweets
- Tweets & replies
- Media, current page.
-
Puppeteer v2.1.0 is out!
Chromium 80
puppeteer.launch({product: 'firefox'})
Puppeteer can now talk to a real, unpatched Firefox binary. You no longer need to install puppeteer-firefox separately!
https://github.com/puppeteer/puppeteer/releases/tag/v2.1.0 …pic.twitter.com/Kw5UZ35gHo
-
JavaScript regular expressions are getting more powerful!
RegExp match objects now have an `indices` array that contains the start and end positions for each capturing group.
@MayaLekova explains: https://v8.dev/features/regexp-match-indices …pic.twitter.com/1923QdMchv
-
Hͫ̆̒̐ͣ̊̄ͯ͗͏̵̗̻̰̠̬͝ͅE̴̷̬͎̱̘͇͍̾ͦ͊͒͊̓̓̐_̫̠̱̩̭̤͈̑̎̋ͮͩ̒͑̾͋͘Ç̳͕̯̭̱̲̣̠̜͋̍O̴̦̗̯̹̼ͭ̐ͨ̊̈͘͠M̶̝̠̭̭̤̻͓͑̓̊ͣͤ̎͟͠E̢̞̮̹͍̞̳̣ͣͪ͐̈T̡̯̳̭̜̠͕͌̈́̽̿ͤ̿̅̑Ḧ̱̱̺̰̳̹̘̰́̏ͪ̂̽͂̀͠ is a perfectly valid JavaScript identifier. https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1969471 …pic.twitter.com/zAyuQ6j5KU
-
Did you watch the video? We point to the benchmark on GitHub around the 04:58 mark:https://www.youtube.com/watch?v=ff4fgQxPaO0&t=04m58s …
-
For large JSON-compatible objects, JSON.parse is faster than JS object literals.
True for all browser JavaScript engines!
Speed-ups from 1.2× to 2×
My #ChromiumDevSummit lightning talk explains why:https://www.youtube.com/watch?v=ff4fgQxPaO0 … -
Replacing all occurrences of a substring with another string is a common operation. Unfortunately, doing this correctly is surprisingly hard in JavaScript.
The new String.prototype.replaceAll API is here to help!
https://v8.dev/features/string-replaceall …pic.twitter.com/zzwqmXQD91
-
-
Alternatively, you could use
@ChromeDevTools in Chrome Canary. Emulating timezones is supported through the Sensors panel (since it’s tied to geolocation). Set the desired timezone before loading the page, and there you go!https://www.youtube.com/watch?v=7GCh5qJuMJM …Show this thread -
The
#ChromeDevSummit web app lets you view the schedule in your own timezone: https://developer.chrome.com/devsummit/schedule/ … Super handy! With Puppeteer v2, you can now write automated tests for this functionality. This script takes a screenshot of the schedule as viewed from Buenos Aires.pic.twitter.com/4M05EgGsr3
Show this thread -
Puppeteer v2.0.0 is out!
Emulate CSS media features such as dark/light mode or prefers-reduced-motion
Emulate timezones
Improved page.screenshot
https://github.com/GoogleChrome/puppeteer/releases/tag/v2.0.0 …pic.twitter.com/V1ECWgswfH
-
And re: optimize-js, the difference between the numbers you list (0.6 ms) seems insignificant: Without optimize-js: 11.86ms With optimize-js: 11.24ms The V8 team recommends against using optimize-js nowadays: https://v8.dev/blog/preparser#pife …pic.twitter.com/AxEujmWpMj
-
There seem to be some inaccuracies here. The "lazy parsing over and over" problem has been fixed since
@v8js v6.3 / Chrome 63: https://v8.dev/blog/preparser#skipping-inner-functions …pic.twitter.com/i4H0aO9BJ5
-
You mean like this? Available in Canary
pic.twitter.com/orwJUIAf1j -
“It is reserved for UA instructions, such as `text=`, and is stripped from the URL during loading so that author scripts can’t directly interact with it.” https://wicg.github.io/ScrollToTextFragment/#fragment-directive …pic.twitter.com/VFjgJoMDNp
-
URL syntax & terminology:
Within a URL, # starts a URL fragment (or “hash”).
Within a URL fragment, :~: starts a URL fragment directive.
#:~:text=hello%20world instructs the browser to highlight + scroll to the text “hello world”.
https://wicg.github.io/ScrollToTextFragment/ …pic.twitter.com/vevjmvs8sT
-
Agreed! From our first write-up in this series: https://mathiasbynens.be/notes/shapes-ics …pic.twitter.com/wgFCof8f84
-
The story of a @v8js performance cliff in React
how are JavaScript values represented in memory?
what are shape migrations & deprecations?
how do Object.{preventExtensions,seal,freeze} work?
https://v8.dev/blog/react-cliff …pic.twitter.com/XhiBxRLIBu
-
1. I remember DM'ing you to confirm before our presentation (thanks again)! 2. We covered this: https://www.youtube.com/watch?v=0I0d8LkDqyc&t=28m20s … but decided to omit this side note from the article. Also, http://Object.is ftw! 3. V8 still calls them "maps", but "shapes" is the clearest term IMHO.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.