浏览器未完全加载网页

Currently I'm trying to do the layout for my shopping website. I've come across weird problem I do not understand whether it's my fault or a browser (but I'm more likely to think that I've done something wrong.). My page is not loading fully, it looks like browser loads a part of it and then stops. However if I put some even random words or letters below the code, for each letter I put a one character of expected content shows up. And there is nothing apart from some php (that should now affect html view I guess), and bootstrap used apart from html.

And since the html I wrote is rather long I'll post those parts in a github gists to make this post more readable.

Here's the code: https://gist.github.com/kbialy92/73301401014624de3f73

So is it a problem that is somehow connected to the browser, memory usage or just the code written incorrectly?

Thanks in advance

Your php is dieing. Try using

ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

At the top of your php code. A half printed page means that you are printing some html then when you get to the error, the output stream is cut short.

If you can't find the problem, upload the php code here for review.