Login  Register

Re: Media Queries

Posted by GregChapman on Nov 15, 2016; 2:26pm
URL: https://support.nabble.com/Media-Queries-tp7597404p7597524.html

Hi Harvey,

I warned you I was shooting in the dark!

Now I look again I see there is a subtle difference between the equivalent lines in the "Hugo code":
<script type="text/javascript"  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
and the "Google code" which I suggested inserting to replace it:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

I really am beyond my level of competence here.

The two JavaScript files (show_ads.js and adsbygoolge.js) while located in exactly the same folder, are different. I am not surprised by that as they have a subtly different job to do because of the different HTML code they are interacting with. However, I have no understanding of why, one has a leading "http:" to indicate its source and the other doesn't. Also, I have no idea why one includes "asnc" and the other includes "type="text/javascript" " instead.

I have just done a search on "javascript attribute async". Amongst others, that turns up:
http://www.w3schools.com/tags/att_script_async.asp

which includes the comment: "In XHTML, attribute minimization is forbidden, and the async attribute must be defined as <script async="async">. " so you could try making that change so the line becomes: <raw><script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>


I doubt very much that If that doesn't do the trick that I'll do any better with other suggestions. You really are asking a blind man to lead you now!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.