-
AuthorPosts
-
May 18, 2014 at 12:56 am #45578
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,
TommyMay 18, 2014 at 4:30 pm #45743Hi 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.
May 19, 2014 at 1:22 am #45894This reply has been marked as private.May 19, 2014 at 11:15 am #46042Hi 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.
May 19, 2014 at 6:38 pm #46182Great, 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,
TommyMay 20, 2014 at 11:14 am #46480Hi 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.jsAt 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.
August 14, 2014 at 9:37 pm #85066I deleted what you are referring to but I am still receiving a 404 error. Any thoughts?
August 14, 2014 at 10:15 pm #85094Hi Mark,
Unfortunately, I can’t do another check because your host account is suspended. Please check it and let us know.
Thank you.
August 15, 2014 at 7:09 am #85315This reply has been marked as private.August 15, 2014 at 7:35 am #85328Hi 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
-
AuthorPosts