Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #45578

    Tommy K
    Participant

    Hi,

    I noticed that the page html is loading twice and I can’t really figure out where it loads.

    http://glui.me/?i=o45zi21wjyrw17i/2014-05-18_at_12.47.png/

    Please notice that I have set it to sort by load time.

    Is this a bug or does this happen only for me?

    Another screenshot from chrome network waterfall:
    http://glui.me/?i=hnkobfc8q79f7ho/2014-05-18_at_12.52.png/

    I also noticed that there is some other file being requested that is 404, see in the screen above.

    Cheers,
    Tommy

    #45743

    Rad
    Moderator

    Hi Tommy,

    Thank you for writing in!

    Not sure what is /hem/ link for. I just tested my url and its not having double request using x theme. It can be from other plugin and I can give you some suggestion, but there is no assurance of its fix.

    You can provide your url address in private.

    Thank you.

    #45894

    Tommy K
    Participant
    This reply has been marked as private.
    #46042

    Alexander
    Keymaster

    Hi Tommy,

    This is a bug that happens when you haven’t set a background image in Customizer. It tries to load the home URL as an image, which causes the second request to be made. This is something we’re working on improving in a future release.

    You can get a temporary fix put in by editing this file: x/framework/functions/global/admin/customizer/output.php

    Go to the very bottom, and you should see these three lines:

    $output = preg_replace( '#/\*.*?\*/#s', '', $css );            // 1
    $output = preg_replace( '/\s*([{}|:;,])\s+/', '$1', $output ); // 2
    $output = preg_replace( '/\s\s+(.*)/', '$1', $output );        // 3

    Just below that, add this fourth line:
    $output = str_replace('url()', '', $output);

    That will strip out the unwanted url declaration in the meantime. The next update for X will have this resolved.

    #46182

    Tommy K
    Participant

    Great, that sorted the loading twice issue. However, the 404 still remains.

    It can’t find /wp-content/themes/x/framework/js/vendor/bigvideo/video.js.map.

    Regards,
    Tommy

    #46480

    Alexander
    Keymaster

    Hi Tommy,

    Great! Glad to hear that fixed it for you.

    Regarding that 404, that’s just a sourcemap reference. It’s for javascript debugging. It will only look for it if you have the developer tools open, so this won’t affect visitors at all.

    You can remove it by opening this file
    x/framework/js/vendor/bigvideo/video-4.1.0.min.js

    At the very end of the file, you should see this:
    //@ sourceMappingURL=video.js.map

    Just delete that, and it won’t reference a sourcemap anymore.

    #85066

    Mark P
    Participant

    I deleted what you are referring to but I am still receiving a 404 error. Any thoughts?

    #85094

    Rad
    Moderator

    Hi Mark,

    Unfortunately, I can’t do another check because your host account is suspended. Please check it and let us know.

    Thank you.

    #85315

    Mark P
    Participant
    This reply has been marked as private.
    #85328

    Zeshan
    Member

    Hi Mark,

    Thank you for writing in!

    I’m not able to reproduce the 404 error in chrome’s Network tabs. This could be a cache issue, please check by clearing your browser’s cache or try using a different browser.

    If you are using a cache plugin, I’d recommend that you clear your caching plugin, and disable it during development. This can cause Customizer changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.

    Hope this helps.

    Thank you