This may be seen as satire, but webdev as a phenomenon really is a collection of all sorts of poor reinventions and crutches, for which there’s naturally billions of lines of code, which AI loves to have. It will replace webdevs as is. The downside is that we’ll never make a step forward with that (not that webdevs planned to do so anyway).
In fact, web developers are the first for AI to completely replace them as it is best trained on the javascript and typescript ecosystem(s) and that was all done by themselves due to it's high popularity and the lowest of all barriers in this industry.
It will take time for the other sectors, but web developers are the first to be completely displaced.
For some, mccoffee is a solution. So it does depend on expectations.
When there's no budget for hiring a human professional, then any AI output seemingly resembling what is needed would be a solution. Because, how to properly verify it?
Followed by an AI model executing through Javascript, followed by one executing through WASM, followed by an AI model running natively in the browser which will be sold as the 'lean' version which no longer needs Javascript. You'll just have an AI model in the browser interpret data sent by the AI-driven server, 'content' tailor-generated for the user.
Also imagine the compression factor made possible by such a system. Instead of sending a few dozens of megabytes over the line the AI-server will tell the AI-renderer to:
X-PAGE-PROMPT = generate a page showing a number of cats engaged in play with a fluffy toy, make sure to have product placement for products $A, $B and $C, have a catalogue for the furniture used in the scene lie open op the table and make sure that the brand and vendor names are clearly visible