wojtek.im

https://wojtek.im/journal

3 posts

Tech

Subscribe via RSS

  1. Autoplay does not work on Mobile Safari in Low Power Mode

    For the full reading experience, visit https://wojtek.im/journal/safari-autoplay-not-working-in-low-power-mode. You probably ran into a bug where your video that had muted, loop, playsinline, autoplay properties set was not playing and had a giant play button overlay on it when using Safari.This happens due to Low Power Mode. Apple prevents automatic playback of any video with LPM enabled.Unfortunately there is no way around it other than getting the user to press the native play button or a…

    0
  2. How to target Safari with a CSS @supports media query

    For the full reading experience, visit https://wojtek.im/journal/targeting-safari-with-css-media-query. Yes, this also works with Safari on macOS 27, iOS 27, iPadOS 27, and visionOS 27. I just spent over 30 minutes looking for a way to only target Safari with CSS media queries and could not find a reliable way that works with Safari without also targeting Chrome. Looking through the compatibility table on caniuse.com you can spot that Safari 16 and above has a unique property which is not…

    0
  3. You need PgBouncer when deploying Postgres on Railway

    Don't let your app suddenly break when connections are maxed out and you see 'FATAL: sorry, too many clients already' in the logs.

    0