There is a cost to the company for non performant front end code though. If the front end preforms poorly users are less likely to use it.
Dark thought: maybe sites actually profit from a certain level of "bloat", if it drives away less lucrative visitors while not affecting the demographics that are most valuable to advertisers.