Theme issues
-
I have been using the 2012 theme for years and it was great until WordPress starting add crap stuff in the files. For example, I finally notice the WP starting to load little slower for some reasons, I starting to see these:
<script type=”text/javascript”>
window._wpemojiSettings = {“baseUrl”:”https:\/\/s.w.org\/images\/core\/emoji\/2\/72×72\/”,”ext”:”.png”,”svgUrl”:”https:\/\/s.w.org\/images\/core\/emoji\/2\/svg\/”,”svgExt”:”.svg”,”source”:{“concatemoji”:”http:\/\/www.buffalotransit.site\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.6.1″}};
!function(a,b,c){function d(a){var c,d,e,f,g,h=b.createElement(“canvas”),i=h.getContext&&h.getContext(“2d”),j=String.fromCharCode;if(!i||!i.fillText)return!1;switch(i.textBaseline=”top”,i.font=”600 32px Arial”,a){case”flag”:return i.fillText(j(55356,56806,55356,56826),0,0),!(h.toDataURL().length<3e3)&&(i.clearRect(0,0,h.width,h.height),i.fillText(j(55356,57331,65039,8205,55356,57096),0,0),c=h.toDataURL(),i.clearRect(0,0,h.width,h.height),i.fillText(j(55356,57331,55356,57096),0,0),d=h.toDataURL(),c!==d);case”diversity”:return i.fillText(j(55356,57221),0,0),e=i.getImageData(16,16,1,1).data,f=e[0]+”,”+e[1]+”,”+e[2]+”,”+e[3],i.fillText(j(55356,57221,55356,57343),0,0),e=i.getImageData(16,16,1,1).data,g=e[0]+”,”+e[1]+”,”+e[2]+”,”+e[3],f!==g;case”simple”:return i.fillText(j(55357,56835),0,0),0!==i.getImageData(16,16,1,1).data[0];case”unicode8″:return i.fillText(j(55356,57135),0,0),0!==i.getImageData(16,16,1,1).data[0];case”unicode9″:return i.fillText(j(55358,56631),0,0),0!==i.getImageData(16,16,1,1).data[0]}return!1}function e(a){var c=b.createElement(“script”);c.src=a,c.type=”text/javascript”,b.getElementsByTagName(“head”)[0].appendChild(c)}var f,g,h,i;for(i=Array(“simple”,”flag”,”unicode8″,”diversity”,”unicode9″),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],”flag”!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener(“DOMContentLoaded”,g,!1),a.addEventListener(“load”,g,!1)):(a.attachEvent(“onload”,g),b.attachEvent(“onreadystatechange”,function(){“complete”===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
<style type=”text/css”>
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>What is this for and why it’s there? I dont need it, it causing the WordPress to load it more longer because of this.
Also other thing, why I am seeing this:
<link rel=’dns-prefetch’ href=’//maxcdn.bootstrapcdn.com’ />
<link rel=’dns-prefetch’ href=’//fonts.googleapis.com’ />
<link rel=’dns-prefetch’ href=’//s.w.org’ />I even not know it was there until WP v4.4 came up, it was added in it. Why? WordPress needs to let people to have more control with the WP Core instead adding crap in it.
Also other thing:
<link rel=”canonical” href=”https://www.buffalotransit.site/” />
<link rel=’shortlink’ href=’https://www.buffalotransit.site/’ />
<link rel=”alternate” type=”application/json+oembed” href=”https://www.buffalotransit.site/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.buffalotransit.site%2F” />
<link rel=”alternate” type=”text/xml+oembed” href=”https://www.buffalotransit.site/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.buffalotransit.site%2F&format=xml” />
<style type=”text/css” id=”twentytwelve-header-css”>
.site-title,
.site-description {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
</style>What is these for? I dont use JSON.
Hope to see some answers and please for the WP v4.7, let people can have more control to enable/disable all of these because it is slowing down my site and lot of errors as well.
Thanks.
- The topic ‘Theme issues’ is closed to new replies.