Issue with Website Load Order

yogena

Free Member
  • Business Listing
    Apr 12, 2025
    7
    0
    London
    calcvat.uk
    Hi everyone,

    I’m looking for some feedback on my new website:. I’ve been working on it for a while and would love to know what you think.
    However, I’m facing an issue where the calculator loads first when the page is opened, and the hero image loads afterward. Ideally, the hero image should be the first thing visitors see.
    Has anyone encountered this issue before? Any suggestions on how to fix it so the hero image loads before the calculator?

    Thanks a lot for your help and feedback!
     

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    There could be multiple reasons for this. You need to inspect the code to see how the scripts for the calculator are loaded and if the hero image takes a while to load.

    Try looking at the waterfall on a site like gtmetrix or pingdom.
     
    • Like
    Reactions: yogena
    Upvote 0

    yogena

    Free Member
  • Business Listing
    Apr 12, 2025
    7
    0
    London
    calcvat.uk
    Thanks for your reply!
    I’ve checked my website’s performance, and it’s currently scoring 98, which seems pretty good. I’m using WordPress for the website, and I’m not sure if it’s related to that.
    Could you kindly check the site and let me know if you spot any specific issues? Here’s the link:
    www.calcvat.uk

    Thanks again for your help!
     
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    It's not page speed. You need to test for the order each element loads:


    However, there are multiple issues with your site. Trying to unravel everything is almost impossible, the code a real mess. Did you build it yourself?
     
    Upvote 0

    yogena

    Free Member
  • Business Listing
    Apr 12, 2025
    7
    0
    London
    calcvat.uk
    Yes, I built it myself. I know there are some issues, and I’m working on fixing them. I can definitely make improvements to the code.
    If you have any specific suggestions on where to start or areas to focus on, I’d really appreciate it!


    Thanks for your input!
     
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    You really need to strip out the hundreds of lines of code that should be in external stylesheets. Then sort out the scripts. Then rethink your choice of theme.

    And might even be worth choosing another domain name as there is already a calcvat.co.uk

    What you really need is a website review - but you need to upgrade your membership for this.
     
    • Like
    Reactions: yogena
    Upvote 0
    Agree with all of the other comments. Might want to look into the "transition-delay" options of CSS which could help you delay the visual loading of the element to give the hero time to load in, otheriwise using javascript you could use the loading of an element as as the trigger to display or load another element. If you are not code orientated then if you are using one of the popular page builders they normally have options to delay loading of elements within the screen which might help you.
     
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    If you look at the code it’s a horrible spaghetti mess. The theme dumps a huge chunk of necessary css, there are nested classes and all sorts of enqueued files.

    Example:

    Code:
    <body class="home page-template-default page page-id-28 wp-custom-logo wp-embed-responsive footer-on-bottom hide-focus-outline link-style-standard content-title-style-hide content-width-fullwidth content-style-unboxed content-vertical-padding-show transparent-header mobile-transparent-header">

    And the actual calculator isn’t very good. And it looks like someone has pasted in the calculator code resulted in a second <head> being inside <body>. A real mess.

    I’m not even sure of the purpose of the site.
     
    Upvote 0
    If you look at the code it’s a horrible spaghetti mess. The theme dumps a huge chunk of necessary css, there are nested classes and all sorts of enqueued files.
    Yeah, I never actually checked the code. But yes there are some definite issues, just one being the code for the calc is a full html page inserted into a code block within your content.
    2025-04-13-10-08-42-b007db3c5bae.png
     
    • Like
    Reactions: yogena
    Upvote 0
    And the actual calculator isn’t very good. And it looks like someone has pasted in the calculator code resulted in a second <head> being inside <body>. A real mess.

    I’m not even sure of the purpose of the site.
    Hahaha its early morning, just seen you mentoned that embeded page code already... I need more sleep on a sunday. :)
     
    Upvote 0

    ctrlbrk

    Free Member
    May 13, 2021
    997
    401
    Example:

    Code:
    <body class="home page-template-default page page-id-28 wp-custom-logo wp-embed-responsive footer-on-bottom hide-focus-outline link-style-standard content-title-style-hide content-width-fullwidth content-style-unboxed content-vertical-padding-show transparent-header mobile-transparent-header">
    That's how Wordpress' themes attach CSS to a page isn't it?

    Depending on the theme you choose, various classes are added so that you can target this or that WP component.
     
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    That's how Wordpress' themes attach CSS to a page isn't it
    Some themes do. Good ones don’t. The kadence theme doesn’t need that many classes, it’s just lazy coding.
     
    • Like
    Reactions: yogena
    Upvote 0

    ctrlbrk

    Free Member
    May 13, 2021
    997
    401
    Some themes do. Good ones don’t. The kadence theme doesn’t need that many classes, it’s just lazy coding.
    I think there's some method to the madness

    page-template-default page page-id-28

    The bit above allows you to target all pages of the theme ('page'), that individual page ('page-id-28') or the page template ('page-template-default').

    I'm not suggesting this is the best way to go about it - in fact I worry that Wordpress is becoming bloated. I try to keep things as slim as possible myself with a custom theme so I understand where you're coming from.

    I just think - for many people who are not as development-minded, this may make things easier.
     
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,699
    8
    15,380
    Aldershot
    www.aerin.co.uk
    I agree. The problem with many themes is they try to do everything which results is bazillions of classes.

    Have you looked at the code on that site? It’s not pretty.
     
    Upvote 0

    ctrlbrk

    Free Member
    May 13, 2021
    997
    401
    The problem with many themes is they try to do everything
    That's the downside of semplicity. You make it simple for people but it comes at a cost.

    I agree programmers have become lazy. Rather than trying to code efficiently now it's "Eh, computers are now so powerful who cares if my code requires more ram and more disk space".
     
    • Like
    Reactions: fisicx
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice