Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown "BESbswy" <span>

I've just noticed that some strange span is being added automatically to the end of body with left and top with -999 and visibility hidden. I work with wordpress (if it matters). The span looks exactly like this:

<span style="position: absolute; left: -999px; top: 0px; visibility: hidden; font-size: 300px; width: auto; height: auto; margin: 0px; padding: 0px; font-family: Roboto, Arial, sans-serif;"> BESbswy <span>

It contains "BESbswy" string.

I have read some article on the web that says this is a runtime test in the Typekit/Webfontloader, which I'm not using at all. All the pages uses Google Maps API and contain maps so i realized that this span is been added with google maps, since i cant see it in another page, that doesn't include a map. When i remove the map from my page i cant see the span anymore. If the Google Maps API seems to create one of these "BESbewy" span elements, Can someone help me to understand what is this BESbewy thing? and how to make make it disappear? enter image description here Tnx!

## UPDATE ##

I made a script that solve this issue, a temporary solution, until i will find out what is this span :|

  var clearSpan = setInterval(function () {
      var x = $("span:contains('BESbswy')");
      if(x.length != 0){
          $(x).text("");
          clearInterval(clearSpan);
      }
},100);
setTimeout(function(){clearInterval(clearSpan);},5000);
like image 458
Adi Azarya Avatar asked Oct 30 '16 09:10

Adi Azarya


1 Answers

Fixed with simple css regule:

span[style*='top: -999px']{display: none;}

Span is generated by GoogleMaps plugin. Couldn't find other way to fix it.

like image 179
Radek Krajewski Avatar answered Oct 13 '22 04:10

Radek Krajewski