Results 1 to 12 of 12
  1. #1
    cat's Avatar
    cat
    cat is offline Private Member
    Join Date
    June 2007
    Posts
    333
    Blog Entries
    5
    Thanks
    40
    Thanked 23 Times in 19 Posts

    Default all this java script in head necessary? Hurts SEO?

    There's a big part of java script in the head my page cyberspace-casino.com. I'm worried if it hurts my SEO.
    Have a look at this part:

    <style type="text/css" media="all">/*<![CDATA[ */
    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>
    <style type="text/css" media="print">/*<![CDATA[ */
    #wpadminbar { display:none; }
    /* ]]>*/</style>
    <style type="text/css" media="screen">/*<![CDATA[ */
    html { margin-top: 32px !important; }
    * html body { margin-top: 32px !important; }
    @media screen and ( max-width: 782px ) {
    html { margin-top: 46px !important; }
    * html body { margin-top: 46px !important; }
    }
    /* ]]>*/</style>
    <script type="text/javascript">//<![CDATA[
    window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2\/svg\/","svgExt":".svg","source":{"concatemoji":"htt p:\/\/www.cyberspace-casino.com\/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.getConte xt&&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.toD ataURL().length<3e3)&&(i.clearRect(0,0,h.width,h.h eight),i.fillText(j(55356,57331,65039,8205,55356,5 7096),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.ge tImageData(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","di versity","unicode9"),c.supports={everything:!0,eve rythingExceptFlag:!0},h=0;h<i.length;h++)c.support s[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.s upports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.ever ythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.every thingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c. readyCallback=function(){c.DOMReady=!0},c.supports .everything||(g=function(){c.readyCallback()},b.ad dEventListener?(b.addEventListener("DOMContentLoad ed",g,!1),a.addEventListener("load",g,!1))a.attachEvent("onload",g),b.attachEvent("onreadyst atechange",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._wpemojiS ettings);
    //]]></script>
    commission arrives thanks

  2. #2
    dfiocch's Avatar
    dfiocch is offline Private Member
    Join Date
    September 2006
    Posts
    875
    Thanks
    787
    Thanked 565 Times in 348 Posts

    Default

    As far as I know this code enables "emojis" on your site. Do you use emoticons in your text and/or comments? If no, you can safely disable this code.
    I don't use WP so I don't know if I can "direct you" on the right way but disabling this code looks pretty simple.

    1. You can use this plugin (easiest way): https://wordpress.org/plugins/disable-emojis/
    2. You can write a function (PHP) to deactivate it. The function needs to be placed in "function.php" file contained in your main theme folder.

    And no: no effects on SEO.

  3. The Following User Says Thank You to dfiocch For This Useful Post:

    cat (14 October 2016)

  4. #3
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,098
    Thanks
    433
    Thanked 2,333 Times in 1,555 Posts

    Default

    It seems quite weird to me that they include this feature without a built in ability to turn it off. I mean, how many people are actually going to even use it?

    But anyway, dfiocch beat me to it - you can disable it if you like.
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  5. The Following User Says Thank You to baldidiot For This Useful Post:

    cat (14 October 2016)

  6. #4
    cat's Avatar
    cat
    cat is offline Private Member
    Join Date
    June 2007
    Posts
    333
    Blog Entries
    5
    Thanks
    40
    Thanked 23 Times in 19 Posts

    Default

    I turned of the emoji feature but the code is still there.
    Regarding SEO there should be readable text for the search engines as soon as possible. The script is in the head and not in the body part. NO problem with SEO?
    commission arrives thanks

  7. #5
    DaftDog's Avatar
    DaftDog is offline Private Member
    Join Date
    October 2008
    Location
    South Africa
    Posts
    2,155
    Thanks
    690
    Thanked 775 Times in 464 Posts

    Default

    I wouldn't worry to much about it. Google knows if you're using CMS like WordPress. My sites do okay and they're WordPress with a lot of code.

  8. The Following User Says Thank You to DaftDog For This Useful Post:

    cat (14 October 2016)

  9. #6
    cat's Avatar
    cat
    cat is offline Private Member
    Join Date
    June 2007
    Posts
    333
    Blog Entries
    5
    Thanks
    40
    Thanked 23 Times in 19 Posts

    Default

    I found a plugin that is helpful to remove this and more.wp_head() cleaner

    To me it is easier to use than the already installed head cleaner.
    commission arrives thanks

  10. #7
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    I often wondered this myself. Did the plugin work? Easy to use?
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  11. #8
    cat's Avatar
    cat
    cat is offline Private Member
    Join Date
    June 2007
    Posts
    333
    Blog Entries
    5
    Thanks
    40
    Thanked 23 Times in 19 Posts

    Default

    This one is easy to use. Installed it offers check boxes of what to display in the head and what not.
    commission arrives thanks

  12. #9
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,994
    Blog Entries
    3
    Thanks
    1,417
    Thanked 1,319 Times in 783 Posts

    Default

    You'll screw up your site bro, meddling with code in that way.

    First of all, it doesn't affect your on-page SEO but it does affect the loading time of the page. So in a way it does consequently affect SEO a bit.

    Second of all, the way to remove it isn't to use any head cleaners, but to attack the very origin of the emoji code and instruct Wordpress to stop loading the emoji code altogether.

    This, basically.

  13. The Following User Says Thank You to DanHorvat For This Useful Post:

    buyonaut (6 May 2018)

  14. #10
    cat's Avatar
    cat
    cat is offline Private Member
    Join Date
    June 2007
    Posts
    333
    Blog Entries
    5
    Thanks
    40
    Thanked 23 Times in 19 Posts

    Default

    this plugin works on my site. See code now and before.
    commission arrives thanks

  15. #11
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,896
    Thanks
    4,522
    Thanked 9,277 Times in 5,965 Posts

    Default

    Valuable tip Dan, of course when I get around to using it I will spend an hour looking for the post again....

    Why use a plugin, to remove something wordpress loads, when you can just tell wordpress to stop loading something?

    When making changes to the functions file, stop and start the site since the functions file is read at site startup.

    Rick
    Universal4

  16. #12
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,994
    Blog Entries
    3
    Thanks
    1,417
    Thanked 1,319 Times in 783 Posts

    Default

    It's one of the basic stuff you unfortunately should do with every new Wordpress site.

    Another one that tackles the same issue is the Heartbeat API, you need to turn it off for visitors who aren't logged in as admin.

    Both of these things slow down the site, the other one significantly. Not sure if they solved the problem in the new Wordpress version though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •