• Resolved sourcecodedynamics

    (@sourcecodedynamics)


    When I view “page source” while on any of my pages, I have around 11 lines of code. 99% of the code is on line 6. https://www.sourcecodedynamics.com Is this normal? I discovered this while testing and configuring my page load speed. I am not a prob but, it sounds like this would be a big factor for why my page is so slow.

    If this is abnormal, I am curious as to why this would happen. Most importantly if it isn’t normal, how do I fix it?!

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • csloisel

    (@csloisel)

    My guess is that you are using a plugin that is minifying html.

    Thread Starter sourcecodedynamics

    (@sourcecodedynamics)

    I was using W3TC and enabled the option to minify HTML but I have deleted that plugin. Would it “un-minify” during un-installation you think? Would minify’d HTML contribute to slow speeds?

    csloisel

    (@csloisel)

    Minifying html should actually reduce page load and increase speed due to smaller file size. If you deleted the plugin then it shouldn’t still be serving minified pages, but I don’t know enough about that plugin to say for sure. I would start disabling other plugins and see if do that removes the minification.

    Thread Starter sourcecodedynamics

    (@sourcecodedynamics)

    Thanks csloisel. If the jumbled html is the result of minify and is normal then I am okay with it (especially if it reduced page load speed). Just an observation I had while trying to pinpoint why my site is so slow.

    I am still on the hunt for how to speed up my site, but that’s another topic. Appreciate the help.

    Thread Starter sourcecodedynamics

    (@sourcecodedynamics)

    For reference, Autoptimize was causing the jumbled code. I was able to tell immediately after disabling it. I re-enabled it as it does a great job at reducing page load time. At least now we know why.

    you can disable the “optimize HTML” just the option permanently or you can load a page like this “https://your.url/?ao_noptimize=1” to disable autoptimize just for that request.

    regarding slowness; hope you replaced W3TC with another page caching mechanism (wp super cache or other)?

    frank (autoptimize developer)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Jumbled code all in one line’ is closed to new replies.