• Hello,

    i recently took attention to the issue that some of the pages of a website i maintain have a HTML-document that is too large. I invested this problem and it seemed kind of strange, because some pages with no text and only one image have this issue, but other sites with text and many images don’t. So i looked at the HTML-documents from the sites that have the issue and they contain large CSS sections (about 500 lines, what concludes to about 1 mb). Large section of the CSS is forfonts, which is strange because in the corresponding folder for the HTML-file there is a document labeled CSS which contains the same information. I am guessing normally the HTML-document should just point to the file. Another large portion of the CSS code is wpcf7-related which most likely is for contact form 7. And some is related fusion-blog-layout-grids. A example page for this is [ redundant link removed ]. An example for a page where this issue does not exist is the corresponding homepage.
    I don’t really know why some pages are fine and others aren’t and how to fix the issue.
    I would love for some help!
    Thank you!

    • This topic was modified 3 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • > the issue that some of the pages of a website i maintain have a HTML-document that is too large

    What do you mean too large? Too many lines? File size too large?
    The likelyhood of a page being ‘too large’ simply bc of too much HTML is low.

    I’ve read your support request several time – and I can’t understand what your question is. What’s the issue?

    URLs to your site would be very helpful.

    Thread Starter janeric

    (@janeric)

    the URL i provided was from a page whith that issue: [ redundant link removed ]
    The file size of the HTML-document is 1,74mb.
    As i also wrote – there are too many lines which concludes to a large file size. About 500 lines of CSS, that are normally not there, which are about 1mb. So normally the HTML-document would be about 0,74mb big. I am not talking about the load-time of the whole page whith CSS, Images, etc. but only about the HTML-document itself.
    If my research is correct, HTML-files can’t be stored in cache, and need to be loaded whith every request, so having a smaller sized HTML-document can go a long way.
    You can test it out yourself. Download the page /datenschutz/
    and then download [ redundant link removed ] and compare the HTML-documents. The extra CSS i want to get rid of starts at line 130.

    • This reply was modified 3 years, 7 months ago by Jan Dembowski.

    My first guess is that it’s not the amount of HTML that is causing the large file size – it’s the character encoding to accommodate for Deutch language set.

    re: page size in general:
    – Avada on it’s own is a massive beast. Maybe the worst on the Internet
    – you use the CDN to call Google fonts right away, and yet then load **63** local.woff files. Just use the CDN.
    – dump Contact Form 7, and convert to WP Forms

    I’d start there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS from files is written into html-document’ is closed to new replies.