Page content not loading on some webflow.io pages

I’m updating an old site and have runned into a problem.

On a a collection template page and on a static page, the page content is not loading at the page that is published on the webflow.io domain. All content shows as normal in Designer and preview mode. I can not publish to the custom domain, because the page is not finished).

Page that loads as normal:

The 2 pages where the content do not load:

https://haahjem.webflow.io/aktuelt

Designer preview link:
https://preview.webflow.com/preview/haahjem?utm_medium=preview_link&utm_source=designer&utm_content=haahjem&preview=46130ef562b2db68cf1b350ff06809d4&workflow=preview

1 Like

Hey Christoffer,

Your site-wide custom code is buggy, you have some unclosed <!-- comments that are nuking the browser’s ability to parse the page. On the problem pages, they’re basically commenting out the whole <body>.

1 Like

Ah! Thanks! I missed a comment close tag!

Any idea why it only affected some pages, when the script was placed in global custom code?

I’d expect the other pages had their own head code that somehow was interpreted by the browser as closing that comment.

Anytime you break HTML rules, the browser will make a best attempt to parse it, but little differences will result in a different DOM.

1 Like

Ok. Thanks again for your time!

1 Like