• Resolved peterbelcher

    (@peterbelcher)


    I am new to WordPress but couldn’t find anything obvious when searching either the forums or the internet in general about this issue.

    Basically the page loads really quickly and appears on the browser (any) very nicely. However, even after it appears the page still appears to be loading for a good 5 seconds afterwards and then finally finishes loading although nothing changes during or after that time? I’ve tried removing any Javascript and style sheets in the theme and also removing all plugins / themes so literally just using Kubric with no plugins but to no avail? As a test I simply copied the generated page source from Firefox and saved as a static HTML page to see if this had the same issue. It doesn’t and loads instantly.

    I am hosting the site on a Windows server with IIS6 if that is of any relevance?

    When I traced the time taken in Firebug it shows that everything completes in no time at all but that the DOMContentLoaded event isn’t fired for about 5 seconds and there is just a gap during this time where there seems to be no activity? As I say I’ve disabled Javascript etc and this makes no difference?

    So why does the WordPress version take so long compared to the HTML? Is it that the HTML sends back a content-length and WordPress doesn’t?

    I’ve added some links to the Firebug log, the WordPress and HTML versions and any help would be great!

    The Firebug output can be viewed here:
    https://www.debendoubles.org.uk/Delay.jpg

    The WordPress version of the page can be viewed here:
    https://www.debendoubles.org.uk/links/

    The static HTML version of the page can be viewed here:
    https://www.debendoubles.org.uk/debentest.htm

    Many thanks in advance for any help given!
    – Pete –

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter peterbelcher

    (@peterbelcher)

    As an aside what do people think about me installing some caching plugin as this would:

    a) Be a good test to see if a cached page might load quicker?
    b) Help speed it up generally?

    How good are they at detecting change of content and refreshing and not serving up old content? I am wondering if a cached version might get served quicker and if not might point to a possible lead?

    Thanks,
    – Pete –

    No idea about the caching myself.

    Small suggestion though, i know you tried a static page before, which loaded fine, but have you tried a static version with a .php extesion?

    Why? Well if you take your HTML static version, but serve it as a PHP file, and the same delay occurs you can then show your host there is a clear problem serving up PHP pages in general(not just WordPress ones), which would(i’d think) be ample reason for them to start looking into the issue.

    Obviously if the delay doesn’t occur in a static PHP file, then it doesn’t help, but it’s worth checking wouldn’t you say?

    NOTE: You should just be able to rename the HTML file you created before and just give it a PHP extension instead.

    Thread Starter peterbelcher

    (@peterbelcher)

    Ah, good call… When renaming to PHP it does INDEED show the same problem meaning it’s the PHP being the issue! Good call and one I must admit I wouldn’t have thought of!

    https://www.debendoubles.org.uk/debentest.php

    I am actually in the process of setting up a Linux server to test this with so will see if that solves the problem but VERY interesting about the PHP and will definitely see what they have to say. They’ve already hinted that their Windows servers aren’t really geared up for PHP etc and that I should look at their Linux servers (which I am doing).

    Thanks again and will post again when I have an update (next day or so).
    – Pete –

    Well i’m glad we’ve narrowed down the issue, i’d run out of ideas… ??

    Hope the switch over resolves the issue for you. If they provide cPanel you should find the system very easy to use, if not there are always podcasts / youtube vids for using cPanel, but for the most part it’s fairly obvious in it’s usage.

    ??

    Thread Starter peterbelcher

    (@peterbelcher)

    For t31os_ and anyone else following this thread it appears that it was a Windows Server issue. I’ve now ported https://www.debendoubles.org.uk/ to my Linux Server (I am lucky that I have both!) and the issue has gone!

    Now loads quickly and finishes quickly! The control panel is now useable whereas before I had to wait 6 seconds before I could edit a post, now it’s just there! Great! ??

    Thanks again t31os_ for your help and support and one to make a mental note of!

    Cheers,
    – Pete –

    Good news Pete.

    I don’t suppose your host happened to give you any information about the PHP configuration they were running(Isapi, Fastcgi, etc..). Not hugely important, but may be interesting to note, for anyone else finding similar problems on their windows box.

    Nonetheless happy to hear things turnt out well for you… ??

    Hello all!
    I am having exactly the same problem.
    However, i have tested it that is not related to the server.
    Here is the link:

    https://www.marcioratinho.com/teste

    The problem is related to the theme.
    This instalation is without any plug-ins goin on.
    This instalation works great with the default plugin.

    So, how to fix the theme?!
    TY!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Long delay before DOMContentLoaded is fired?!’ is closed to new replies.