Posts by simevidas@mastodon.social
 (DIR) Post #AUJp7ngKKInUln4kTo by simevidas@mastodon.social
       2023-04-04T19:16:12Z
       
       0 likes, 1 repeats
       
       A short post about <template> https://webplatform.news/#1680613058000
       
 (DIR) Post #AUbgYNBLRBC3gSgOi8 by simevidas@mastodon.social
       2023-04-13T09:44:31Z
       
       0 likes, 0 repeats
       
       Vertically centered checkbox in Firefox’s settings. Not ideal. Also weird, considering that in CSS Flexbox, first-baseline alignment is the default*. Why change that?*https://output.jsbin.com/solabim/quietedit: No, it’s not the default.edit 2: The way to do it in a flex layout is align-items: first baseline.
       
 (DIR) Post #AUbgYO5i3cHQVH3PZA by simevidas@mastodon.social
       2023-04-13T10:02:22Z
       
       0 likes, 1 repeats
       
       Safari seems to have a problem with long checkbox labels in flex layouts.edit: Also, the vertical alignment of the checkbox doesn’t match other browsers. … Jesus Christ, why does everything have to turn into a rabbit hole? I just wanted to change a setting in Firefox. 😆
       
 (DIR) Post #AUbgYPsfP52G3Oy1Vw by simevidas@mastodon.social
       2023-04-13T10:14:08Z
       
       0 likes, 0 repeats
       
       Anyway, the setting that I changed is my language preferences for websites. Firefox updated my request header toAccept-Language: en,de;q=0.7,hr;q=0.3
       
 (DIR) Post #AVPgpOs3moDdmrUzpI by simevidas@mastodon.social
       2023-05-07T12:23:43Z
       
       0 likes, 0 repeats
       
       A little experiment: Blocking non-critical scripts on imgur.com.I picked a random image page: https://imgur.com/gallery/8xL2nAW.First, I loaded the page in vanilla Chrome. I only scrolled by a small amount, to show the image and comments.The result:56 scripts, 5.7 MB of JavaScript (1.4 MB transferred)
       
 (DIR) Post #AVPgpQLWIlNWMWI2Ns by simevidas@mastodon.social
       2023-05-07T12:28:26Z
       
       0 likes, 0 repeats
       
       Then I installed uBlock Origin and set it up as follows:1. disabled all built-in filters (this turns *off* ad blocking)2. disabled JS globally3. turned on advanced mode4. blocked all scripts globallyThen on imgur.com:1. enabled JS2. allowed the two critical script domains: imgur.com and media-lab.ai
       
 (DIR) Post #AVPgpR4ta3fsdFWH6u by simevidas@mastodon.social
       2023-05-07T12:30:23Z
       
       0 likes, 0 repeats
       
       So now I block all non-critical scripts. I reload the page to confirm that the image (main content) renders fine.The result:21 scripts, 2.5 MB (682 kB transferred)
       
 (DIR) Post #AVPgpRln0ZzAmHaWy8 by simevidas@mastodon.social
       2023-05-07T12:45:41Z
       
       1 likes, 0 repeats
       
       What did I achieve?I more than halved the amount of JavaScript for imgur.com. But at what cost?There are no drawbacks as far as I can tell. There are only benefits: * the page loads faster* there is less scroll jank* the layout shift in the side column is goneTo sum up, by reducing the JavaScript, the user experience improved significantly. I think this shows that blocking non-critical scripts by default is worth exploring. I’ve been getting better at this in the past 10 months.
       
 (DIR) Post #AVZOpKjTnlQ1vMC07k by simevidas@mastodon.social
       2023-05-11T23:45:58Z
       
       0 likes, 1 repeats
       
       This works without JavaScript because it’s <details>, and that works without JavaScript because it’s <a>.Before adding another JS library, ask yourself if HTML can do it.
       
 (DIR) Post #AW0Q5QMlqXXpV4Abs8 by simevidas@mastodon.social
       2023-05-23T23:04:14Z
       
       0 likes, 0 repeats
       
       Isn’t it weird that CSS is a critical part of all websites, and yet “CSS expert” does not seem to be a particularly valued profession?
       
 (DIR) Post #AWaN0esChi9zlBNSVs by simevidas@mastodon.social
       2023-06-10T16:18:59Z
       
       0 likes, 1 repeats
       
       The Firefox bug for Declarative Shadow DOM has only 4 votes. https://bugzilla.mozilla.org/show_bug.cgi?id=1712140
       
 (DIR) Post #AXE57Y73qvSBg1Ty1g by simevidas@mastodon.social
       2023-06-30T14:20:24Z
       
       0 likes, 1 repeats
       
       Your tweets can no longer be viewed by people who are not logged in. If you tweet something today, you’re not sharing it publicly.This basically prevents me from tweeting original content anymore. I cannot have my tweets be behind a login wall. That’s unacceptable.I cannot even share links to tweets anymore because some of my readers may not be able to easily access that content.Twitter has made bad moves recently, but this is the worst by far.
       
 (DIR) Post #AXE57a3acnrhhpsDtQ by simevidas@mastodon.social
       2023-06-30T14:25:43Z
       
       0 likes, 0 repeats
       
       I have 70 links to Twitter on my website. I may need to replace them if Twitter doesn’t remove the login wall.
       
 (DIR) Post #AXOhUo1maSjtXF854a by simevidas@mastodon.social
       2023-07-05T21:19:58Z
       
       0 likes, 0 repeats
       
       Underrated Mastodon feature:> Reverse chronological order is the only built-in way to view your feed https://maria-antoniak.github.io/2023/07/04/notes-on-mastodon.html
       
 (DIR) Post #AYxC0qx3VmD3iILHQu by simevidas@mastodon.social
       2023-08-20T23:05:05Z
       
       2 likes, 5 repeats
       
       Somebody at Google thought they’re being funny. I don’t think this is funny. It’s wrong. The exact opposite should be true. Whatever remains must *not* be an empty page.
       
 (DIR) Post #AZEQoclbE4mJFEvgI4 by simevidas@mastodon.social
       2023-08-26T15:47:11Z
       
       0 likes, 1 repeats
       
       On mcdonalds.com, if you want to view the nutrition facts for Chicken McNuggets, you need to allow a script from Google Maps.Google Maps as a critical dependency for nutrition facts.The critical script: https://maps.google.com/maps/api/js?v=3.43&libraries=geometry&client=gme-mcdonaldscorporation2&channel=USRWD-DEP-ProdChannel
       
 (DIR) Post #Ab9ZIENtpQLxHqhdM8 by simevidas@mastodon.social
       2023-10-26T01:00:45Z
       
       1 likes, 0 repeats
       
       > While iLeakage works against Macs only when running Safari, iPhones and iPads can be attacked when running any browser…I wonder why.> …because they’re all based on Apple’s WebKit browser engine.Just kidding. I don’t wonder. We all know why.https://arstechnica.com/security/2023/10/hackers-can-force-ios-and-macos-browsers-to-divulge-passwords-and-a-whole-lot-more/P.S. Password autofill remains a security vulnerability. Just disable it in your browser and click-to-fill passwords like a normal person. You can do it.
       
 (DIR) Post #AcY84Zrd4IX6h1CifI by simevidas@mastodon.social
       2023-12-07T00:32:08Z
       
       0 likes, 0 repeats
       
       @w3c Impressive. Very nice. … Let’s see WHATWG’s bio.
       
 (DIR) Post #An8Cq5hQuA87zIJIGm by simevidas@mastodon.social
       2024-10-18T12:23:48Z
       
       1 likes, 0 repeats
       
       When a script fails to load
       
 (DIR) Post #AuIotfxCIBfelwmcZk by simevidas@mastodon.social
       2025-05-13T20:07:31Z
       
       1 likes, 0 repeats
       
       Excuse me?