My frontend PHP co-worker wonders me again and again. I gonna shoot him soon)))
The html code of page is single line
<html><title></title><div></div></html>
Allways thought that must be:
<html>
<title></title>
<body>
<div>
</div>
</body>
</html>
Page that contains 100 products is single line. It’s hardly understand something.
Does browser’s renders inline html code faster?
This clearly is wrong optimization. The performance difference is never going to be noticed. It would be in the order of milliseconds or less.
However your making the code a lot harder to maintain. Which will probably cost you money in the long run, because it takes longer to understand what’s going on.
Simply put, the potential performance gains never outweigh the extra cost of maintaining that code.