I was looking at my reports on google adsense, and on my mobile site, google reports that people see ads about 1% of the time. The stats are much more in my favor on the desktop site where the ads are above the images.

I have my site with the large picture formatted in the following manner:

<img src="imagetodisplay.jpg" width="xxx" height="xxx">
//page styling begins here.

When testing my site with webpagetest.org, it always shows that the large image begins loading before the adsense ads begin loading.

Here's a webpagetest.org report of my site: http://www.webpagetest.org/result/160404_TB_19N8/1/details/

What I want to do is attempt to change the order so that the first thing that loads is the web page text, then the ads, then the image so that everyone can see the ads fully loaded.

I feel I can accomplish this through javascript and by using the DIV tag to hold the image. (I'm hoping all cell phones support basic javascript).

My question is, would it be an acceptable practice SEO wise to create a DIV and user javascript to embed an image tag containing the actual primary image inside the DIV and have no image tags present (other than the one later created via javascript)? or will a search engine think of that idea in a negative way?

Also, I prefer not having the images themselves indexed in search engines, just only the original web pages that the images are loaded into.

1 Answer 1


I don't know why you want to change order but let me clear that Google ads using asynchronous code to load ads without waiting itself i.e. other things can be load without waiting of ads execution.

You have implemented adsense ads at starting, so browser try to load that one first, and if ads server response well, then as usually browser (Parallel mechanism apply) will load adsense ads simultaneously.

I don't suggest to load adsense ads after text content, because Google always looks on content first before they serve ads, so in such analytics I don't think you should focus on reports said by Webpagetest, or Google Insights.

In your case browser will try to execute adsense javascript at begin, and if it execute (as you have seen on test result), then ads will not going to display immediately, they will check your content first with adsense crawler then they will going to serve ads.

And, by using div and javascript tag, it will not going to affect in SEO. Just make sure, you're not violating Adsense terms.

By the way, if you have problem with Desktop and mobile ads, then Adsense Media Query might be helpful for you. For images you can try lazyload trick, here is first one by using server configuration, and second one is from chris.

  • I'm more interested in loading adsense before any image content. I don't mind if adsense ads begin loading after all text content is loaded. Apr 5, 2016 at 19:06
  • Then use lazy load things and put script at the end of body tag :)
    – Goyllo
    Apr 6, 2016 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.