Surma

Results 164 comments of Surma

Yes, a ServiceWorker can definitely be killed even if the page is active. SWs are supposed to be lightweight and easily killable and respawnable. So unless you keep sending fetches...

Even `event.waitUntil()` allows the UA to kill the ServiceWorker if it keeps it alive for _too_ long, because it may consider it ā€œabnormalā€. It’s pretty well put at the start...

@marvinhagemeister Thanks for the workaround! Yeah, no idea what to do about this one.

... I just realized that `HTMLElement` defines `children` as `HTMLCollection`.

To clarify: Is there currently a workaround for using CEs that does _not_ involve monkey-patching Preact X?

Sadly, TypeScript seems too smart there, too šŸ˜… ```ts const PinchZoom = "pinch-zoom" export default class Inspector extends Component { render() { return ( ); } } ``` Errors with...

Actually, with ```ts const PinchZoom = "pinch-zoom" as any; ``` it does compile. Pretty bad, but I’ll take it.

I like the idea with `to()`. I was thinking of `em`s as well, actually, just forgot to put it in the OP šŸ¤¦ā€ā™‚ļø I think your suggestion with `{element: null}`...

Interesting! Yeah I’d love to hear more context. It’s especially confusing because it works just fineā„¢ļø if you spell out the interfaces: ```wit default world w { import p1: interface...

@mnagel Nach Dateinamen lässt sich schon über die Github-Oberfläche suchen, wenn man [t] drückt.