r/webdev • • 16h ago

News Ladybird - Browser with its own rendering engine launches alpha release

Thumbnail
ladybird.org
175 Upvotes

r/webdev • • 1h ago

Question Is it worth bundling HTTP requests?

0 Upvotes

I am making a web server for a site and I need experienced server devs or browser experts to answer this question. My goal is to load the site as fast as possible. Every page has a "main" script that may need a number of "components", I could solve components in 2 ways: 1) write a bunch of individual `modulepreload` tags; 2) write a unique URL `modulepreload`.

Solution 1 is going to be 5, 10, 20 individual HTTP round trips.

Solution 2 will always be just one request, but there will be many unique URLs across the site, which hurts caching.

To clarify, the server itself doesn't matter - it has no work besides immediately sending back a file. I just can't pick a solution, considering my lack of expertise. I haven't measured actual performance of either solution because I kind of can't right now.


r/webdev • • 10h ago

Discussion Music Copyright

4 Upvotes

I'm pretty sure it might be a subject here before, but I couldn't find anywhere here. I have a personal website. And I want to use some famous songs on a "what am I listening" part of website.

Is that possible? Could I run into any legal issues by doing so?


r/webdev • • 14h ago

How is Sunday.app prefilling Google review star ratings from an external website?

0 Upvotes

I'm a web developer investigating whether it's possible to pass a customer-selected star rating from a third-party website into Google's native review submission interface.

Sunday.app explicitly documents this functionality:
https://intercom.help/sundayapp-help/en/articles/6695489-sunday-reviews-how-does-it-work

I've already tested:

  • Standard Google review links using Place IDs
  • Legacy #lrd=FEATURE_ID,3,5 parameters
  • Modified parameters within Google's native review modal URL

None of the tested methods successfully prefill the stars.

Google's publicly documented APIs don't appear to support this functionality.

Has anyone inspected Sunday's actual redirect, encountered a working deep link, or worked with a Google integration that supports this?

I'm not looking to automate review submissions or filter negative reviews. I simply want to transfer a customer's voluntarily selected rating from my clients on-site review page into Google's review interface, where they can complete and publish it themselves.


r/webdev • • 21h ago

Discussion Bearer token visible in DevTools?

14 Upvotes

Now I know this is a beginner question, and so I’m building an Angular/Spring project as a web app.

The Angular auth interceptor attaches the token (to the HTTP request) here. Obviously when it gets routed to the backend, it exposes the token. That’s just the trade-off for not using a backend-for-frontend architecture.

Say the reason for my architecture choice comes up during an interview. Will I be failed on the spot, or can I justify it by explaining what production-ready (BFF) will look like?

EDIT: Appreciate the answers everyone. I can breathe easy.


r/webdev • • 22h ago

Question is a CSS overlay label on AI-generated images enough, or does the label need to be in the image file?

0 Upvotes

Our marketing site uses realistic AI-generated photos: office scenes with invented people. Under Art. 50(4) of the AI Act these seem to count as "deep fakes", so they need a visible label.

Instead of editing every image, I'd add the label with CSS:

<img src="/images/team-at-work.webp" class="ai-img" alt="AI-generated: support agents at work">

Is anyone relying on an overlay like this, or are you all embedding the EU icon into the files? If you embed it, how? A script, your image pipeline, a CDN plugin?

the ai-img class does add a relative text on the bottom-right of the img.


r/webdev • • 2h ago

Discussion Whats one thing you used to do in web dev that you completely stopped doing?

13 Upvotes

I was looking through some old projects recently and honestly cringed at a few decisions i made back then. From putting way too much logic in components to overcomplicating simple features, there are things I'd definitely approach differently today.

Im curious what that looks like for other developers. Is there a framework, coding habit, workflow, or even a popular practice you used to swear by but eventually realized wasnt worth it?


r/webdev • • 12h ago

Outgrew my workplace, not sure if I should start making the switch/look for other jobs for more money, or continue chilling

6 Upvotes

Want to hear other developer's experiences. I have a job that's basically a dream job, but I feel that I outgrew it in terms of salary and also scope - here are all the pros/cons of the job. I've been at this job for nearly half a decade.

The pros:

  • U.S. based, U.S. pay, fully remote, can work from anywhere (I've worked out of Europe and Asia)
  • Small, local company with only experienced people in the company. No BS, no HR, no corporate politics or useless meetings. No toxic or annoying coworkers and everyone is cool with each other.
  • No micromanagement or insane deadlines
  • Only take on good projects from established mid/large sized companies
  • 25-30 hour work weeks, however often ends up being closer to 35 when you count reading/responding emails and other client communication.
  • Fully flexible hours, sometimes I work for 2-3 hours in the morning and take off, then finish some things before bed. I often play video games, work out, hang out with friends etc. throughout the day. The company knows this and does not care.

The cons:

  • $88K salary, market rate for my area in the U.S. is around $100K, and in HCOL it's closer to $150K.
  • Outdated tech stack, slow moving, nothing "revolutionary"

I'm constantly fighting myself on whether I love the job, or if I'm stagnating by staying at this job. I don't ever want to work for a larger, corporate, public company - but at the same time, I do feel that I want to work on more meaningful/larger scope things with greater pay. My dream type of company would be something like Valve, but I mean that's a company with maybe 200 positions and like 10 million people who would want to work there so that would likely never happen even if I was qualified.

Has anyone been in a similar position? What did you do or didn't do? Did you have any regrets? Should I just send out applications anyways and see what sticks? I've browsed some job boards and it all looks like AI spam/garbage to the point that even basic job descriptions make zero sense, not sure if I'm comfortable sending out my email/name/phone to those.


r/webdev • • 12h ago

Discussion Does anyone not feel slimy/slimed in this industry?

33 Upvotes

You could be working your ass out for who knows what company, you write the best stuff and shit, you oversee frontent/backend/the deployment/QA/project management, and it still won't guarantee it'll pan out for you. Product flops? Layoff.

Other times it just feels so ambiguous. Like a doctor not disclosing a client would need heart surgery, so instead you charge him 4 consultations, he insists you open him up 3 times in between those before you both figure out how to fix his heart problem. Oh and that he might need gastric bypass 2 months later.

Top it all off, if you leave the client won't know how to use his heart so he dies.

I've been trying to build up my own professional identity and so set boundaries i.e. refusing hourly/monthly/one-off work that isn't clearly the right fit for either me or whoever is on the other table. But who's to say I won't be desperate enough for experience or to bring food to the table when things get rough?

EDIT: I'm 25 if that helps, a few years into the industry


r/webdev • • 2h ago

Question Stack suggestion for a small project me and my friends are planning to make?

4 Upvotes

Stack suggestion for a small project me and my friends are planning to make?

My friendgroup who are a mix of CS and IT students have been into bowling lately, and we had the idea to track our scores and sessions.

We are still brainstorming ideas for features but currently we thought of: User creation for saving profiles and scores, Creating groups with or without registered users, Save individual scores, group sessions, and group leaderboards.

For our current stack:

Prototyping:

- Figma

Front-End:

- CSS

- ReactJS

Backend:

- Express

- PostgreSQL

Hosting:

- Supabase

-Vercel

-or our friend that is into homelabbing

Please suggest other features as well. This is just something we want to make for fun and for learning.

Thanks in advance!


r/webdev • • 6h ago

Web Accessibility: Narrator aria-haspopup Modal Dialog Bug

3 Upvotes

Only read if you do accessibility work.

I'm still working on what I thought would be a simple component, and it has turned into a real sh*t show, with one screen reader bug after another.

Today it's Narrator's turn (again).

Most people working in accessibility appreciate what you get with the <dialog> element when it's opened modally with showModal(): top layer placement, so no z-index issues; an inert background, so no focus trap issues; and built-in focus management, including closing with the Escape key.

With a modal dialog you're generally not concerned with aria-expanded, so you can use aria-haspopup="dialog" to tell screen reader users that the button opens a dialog. Yes, I know aria-haspopup has had numerous support issues during its lifetime.

Be warned: if you put aria-haspopup="dialog" on the button that triggers the <dialog>, Narrator swallows the Enter and Space key presses, so the dialog never opens unless you turn off Narrator's scan mode to let the keys through.

This happens with Narrator when paired with Edge and Chrome, but it seems fine with Firefox. I haven't seen the issue with any of the other screen reader and browser pairings I check.

The issue has been filed with both Microsoft and Chromium. If you want to check your own pairings, there's a simple HTML repro page attached to the Chromium issue: https://issues.chromium.org/issues/589824270

Hope this is of use to some of you.