Twitter | Search | |
Serg Hospodarets
Senior Engineering Manager, speaker, and JavaScript / CSS enthusiast.
1,485
Tweets
445
Following
8,599
Followers
Tweets
Serg Hospodarets 16h
ES Modules are considered to support not only JavaScript, but also WebAssembly and potentially other languages and module types.
Reply Retweet Like
Serg Hospodarets Oct 15
Safari Technology Preview is available with: - CSS Custom Properties and Values from CSS Houdini support- the ability for developers to register own CSS Properties - Pointer Events- API to handle pointing input devices such as a mouse, pen/stylus or touch
Reply Retweet Like
Serg Hospodarets retweeted
Sabri Sep 15
How to force restart any iOS device with just CSS? 💣 Source: IF YOU WANT TO TRY (DON’T BLAME ME IF YOU CLICK) :
Reply Retweet Like
Serg Hospodarets retweeted
Eric Bidelman Sep 6
The Reporting API 📬- single API to capture/send all types of browser-generated warnings to a backend. 1. CSP issues 🚨 2. Feature Policy violations 📝 2. Deprecations 🚫 3. Browser interventions 🙅🏼‍♀️ 4. Frontend network errors 5. Browser crashes 💥
Reply Retweet Like
Serg Hospodarets retweeted
Kye Hohenberger Aug 28
Frontend tip: Use request blocker to test and write code for API failures
Reply Retweet Like
Serg Hospodarets Aug 5
Replying to @simevidas @_baxuz
Hm, Polymer version 1 is used on Youtube, version 2 on version 3 is available ...
Reply Retweet Like
Serg Hospodarets retweeted
Jason Laster Jul 26
OMG! just got time travel debugging. Best birthday present ever! 🎂 🦊 Here are all the deets. Can't wait to hear what you think!
Reply Retweet Like
Serg Hospodarets Aug 3
Handy way to import Lodash library runtime using the power of ES modules. Just invoke the: "const _ = await import(``)" Useful for debugging/development. It loads all Lodash functions as ES Modules. Based on idea.
Reply Retweet Like
Serg Hospodarets Aug 1
Replying to @chicoxyzzy
Promise.race can be used for your first case My favorite use-case is to find out a connection to which CDN is the fastest.
Reply Retweet Like
Serg Hospodarets Aug 1
Promise.allSettled proposal added to TC39 process. The key feature- to have a callback when all the promises are settled (fulfilled or rejected), as Promise.all will be rejected as only one of the promises is rejected (even if some others are not finished)
Reply Retweet Like
Serg Hospodarets Jul 31
Replying to @RReverser
It gives you the API missed in PWA comparing to e.g. Electron. Similar to: - Record the user's screen - Define global keyboard shortcuts
Reply Retweet Like
Serg Hospodarets Jul 31
Intent to Implement in Chrome: Badging API. Allows installed Progressive Web Applications to set a badge, shown in an operating-system-specific place. Useful for chats. One of the APIs missed in PWA, so Electron is used (Slack etc.)
Reply Retweet Like
Serg Hospodarets Jul 30
2 ways to create animated terminal presentations: 1) Set the input/output commands content and export to an image/GIF: 2) Record your terminal to a GIF:
Reply Retweet Like
Serg Hospodarets Jul 29
CSS only double-click behavior: … The trick is in the combination of "animation-delay" and "transform:-100%" of the forward (green in the debug mode) layer on ":focus" (which is triggered on click, as it's an HTML link <a />). Tricky but clever.
Reply Retweet Like
Serg Hospodarets retweeted
JavaScript Daily Jul 23
Native JavaScript Modules:
Reply Retweet Like
Serg Hospodarets retweeted
JavaScript Daily Jun 8
Using the Experimental ES Module Support in Node 10:
Reply Retweet Like
Serg Hospodarets Jun 8
Replying to @tobiasbu @simevidas
Unfortunately, it's not, as modules are exscuted in strict mode, without specific behavior in this case:
Reply Retweet Like
Serg Hospodarets Jun 7
Surprisingly, you still can redefine `undefined` in JavaScript even in Strict mode, using let/const/class. ECMAScript issue:
Reply Retweet Like
Serg Hospodarets Jun 6
Till native color functions arrived in CSS, you can use the hsl() color format, providing colors via CSS Custom Properties and modifying them using --darken property similar to lighten() / darken() Sass color functions
Reply Retweet Like
Serg Hospodarets Jun 5
Great list of algorithms and data structures implemented in JavaScript, which can be easily reused during the implementation. Also includes descriptions, explanations, and links to further readings.
Reply Retweet Like