• Resolved barnez

    (@pidengmor)


    Hi,
    My site load is being slowed by a call to a non-existent resource.

    The site is https://www.air-8.com and the bad request is listed as /text/javascript, with a breakdown of the call in tools.pingdom.com showing the X-Pingback of the call as a WordPress codec file in the root: xmlrpc.php

    WordPress lists this file as being enabled as standard since 3.5, and I’ve tried disabling the file, deactivating all the plugins and switching themes to Twenty Twelve. None of which made a difference.

    Is this a WordPress installation issue? And if so, what is the best course of action to resolve it without reinstalling WordPress?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter barnez

    (@pidengmor)

    When I check the page code with Firebug, I can see that there are two identical sets <script src="text/javascript"> each containing the same 149 lines of code. Could it be that the second call is causing the site load to slow? If so, how might I go about removing it?

    Thread Starter barnez

    (@pidengmor)

    Still making no progress with this issue: javascript call is returning a 404 on siteload. Someone has suggested deleting the existing wp-content folder and replacing it. I have another WordPress site running the same version and could copy this (after backing up the original of course).

    Would anyone second this advice?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Who built your theme?

    Disable contact-form-7 plugin.

    Clear cache and cookies,

    run the test again.

    Thread Starter barnez

    (@pidengmor)

    Many thanks for the feedback, and suggestions.

    Andrew:
    The theme was built by an individual rather than a theme developing company. I have tried running the site with the twenty twelve theme from WordPress, and the issue remains the same. Would this not rule out a theme related conflict?

    Bottleneck:
    I don’t think this can be contact form related as the issue predates the installation of the contact from 7 plugin, which was only installed and activated yesterday.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    May you switch to the Twenty Eleven theme again?

    Thread Starter barnez

    (@pidengmor)

    Hi Andrew,
    I have just switched the theme, and checked. The error was still there. Then as an after though I cleared the caching plugin. Hey presto, the error is gone. So, it must be theme related after all?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes, when your theme was activated, it looked liked a <script> tag was hard-coded into your header.php (or which ever file controls your header scripts) file.

    HTML validator was reading this error before you switched the theme

    Line 19, Column 43: duplicate specification of attribute "src"
    
    …    <script src="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jq…

    Thread Starter barnez

    (@pidengmor)

    Thanks Andrew & bottleneck

    Here is the code from the header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
        <head profile="https://gmpg.org/xfn/11">
            <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
            <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    
            <style type="text/css" media="screen">
                @import url( <?php bloginfo('stylesheet_url'); ?> );
            </style>
    
            <link rel="icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
            <link rel="shortcut icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
            <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
            <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
            <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
            <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
            <script src="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    
            <script src="text/javascript">
                $('.gallery-icon a').attr('rel', 'lightframe');
            </script>
            <?php wp_get_archives('type=monthly&format=link'); ?>
    
            <?php wp_head(); ?>
            <script>
                (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
                })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
                ga('create', 'UA-39802109-1', 'air-8.com');
                ga('send', 'pageview');
    
            </script>
    
        </head>
    
        <body <?php body_class();?>>
    
            <div id="wrapper">
                <div id="main">
                    <div id="header">
                        <div id="logo"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/air8-logo.jpg" /></a></div>
    
                        <div id="navcontainer">
                            <div id="snlogos"><a href="https://www.facebook.com/pages/Air8-Event-Structures/145319808859771" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.jpg" /></a></div>
                            <?php if (has_nav_menu('main-menu')) { ?>
                                <?php wp_nav_menu(array('theme_location' => 'main-menu')); ?>
                            <?php } else { ?>
                                Please create a new menu in your admin
                            <?php } ?>
                        </div>
                    </div>
                    <div id="content">

    Are there several errors here? One <script> tag related and one src related…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think Bottleneck’s identified issue is more urgent to address here, so I’ll wait until he responds.

    Hey Andrew.

    Sorry for border-crossing with you. I am just your shadow and will stay there. ??

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please continue ?? You’ve picked up something important that needs addressing.

    okay.

    Barnez, running through html/php validators which I could think of, ( I even have one on my local machine) would require the tense conversation between us.

    May I suggest to address that theme’s issue directly to its developer?

    Thank you.

    Thread Starter barnez

    (@pidengmor)

    Hi Bottleneck.

    Thanks for your advice. Now I know the theme is the origin of this issue, I will go ahead and contact the developer directly as you suggest. I will link to this thread so he can view both your and Andrew’s feedback.

    Many thanks to you both.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘/text/javascript call slowing site load’ is closed to new replies.