i just checked my adsense account and saw this recommendation

9 replies
  • SEO
  • |
I saw this recommendation but i still dont understand it
Here is the recommendation:
Serve resources from a consistent URL:
We have analyzed some of the pages on your sites that serve the most ads, and have detected Page Speed problems that create a highly negative user experience for some users. Frequently viewed pages on your sites are serving the same resource from multiple URLs, wasting client bandwidth and resource

And they gave me this link to learn how to fix it https://support.google.com/adsense/b...answer=1663759

but i still dont understand... when i click the link here is the full message

Serve resources from a consistent URL


Overview

It's important to serve a resource from a unique URL, to eliminate duplicate download bytes and additional RTTs.
Details

Sometimes it's necessary to reference the same resource from multiple places in a page -- images are a typical example. Even more likely is that you share the same resources across multiple pages in a site such as .css and .js files. If your pages do need to include the same resource, the resource should always be served from a consistent URL. Ensuring that one resource is always assigned a single URL has a number of benefits. It reduces the overall payload size, as the browser does not need to download additional copies of the same bytes. Also, most browsers will not issue more than one HTTP request for a single URL in one session, whether or not the resource is cacheable, so you also save additional round-trip times. It's especially important to ensure that the same resource is not served from a different hostname, to avoid the performance penalty of additional DNS lookups.
Note that a relative URL and an absolute URL are consistent if the hostname of the absolute URL matches that of the containing document. For example, if the main page at Example Domain references resource /images/example.gif and Example Domain, the URLs are consistent. However, if that page references /images/example.gif and mysite.example.com/images/example.gif, these URLs are not consistent.
Recommendations


Serve shared resources from a consistent URL across all pages in a site.For resources that are shared across multiple pages, make sure that each reference to the same resource uses an identical URL. If a resource is shared by multiple pages/sites that link to each other, but are hosted on different domains or hostnames, it's better to serve the file from a single hostname than to re-serve it from the hostname of each parent document. In this case, the caching benefits may outweigh the DNS lookup overhead. For example, if both mysite.example.com and yoursite.example.com use the same JS file, and mysite.example.com links to yoursite.example.com (which will require a DNS lookup anyway), it makes sense to just serve the JS file from mysite.example.com. In this way, the file is likely to already be in the browser cache when the user goes to yoursite.example.com.

Please help me out with your suggestion on what to do, and i hope its not a threat to my adsense account

Thanks
Donatus
#account #adsense #checked #recommendation
  • Profile picture of the author donclicksblog
    please help me out
    {{ DiscussionBoard.errors[7494512].message }}
  • Profile picture of the author adlol
    [DELETED]
    {{ DiscussionBoard.errors[7494581].message }}
    • Profile picture of the author donclicksblog
      pls explain more, i still dont understand
      {{ DiscussionBoard.errors[7494627].message }}
      • Profile picture of the author paulgl
        Has nothing to do with the adsense code. Certainly
        nothing to do with a javascript placement of adsense.
        Probably would not work in most cases anyway.
        Php, now that's another story. In fact, google is hinting
        to the fact that I have brought up many times. Don't bloat
        your site with idiotic CSS and js scripts. In fact, they
        are saying DON'T put javascripts on an outside page if possible.

        Like I said, adding adsense via javascript probably won't work right,
        and is borderline against TOS anyway. Plus, you have to call TWO javascripts
        from an external page, further adding to site load time.


        Adding it with php is fine, but even then it still means another call to
        the server, adding load time.

        You don't need CSS for most things, if any. Why people use it,
        who knows. It's like used to be cool or something. Complete
        waste of coding. Html has default settings for a reason.

        What they are saying, is something like this. If you are using images,
        don't use big, different images on each page unless you need to.
        Use one header graphic on each page, from the same jpg file.
        That is, once the image loads for a user on the front page, it does
        not need to be called upon to load. It's in the cache. It sounds like
        each page has a unique url for images instead of using the same one
        over and over. That's just an example. You'd have to look close at
        your case.

        The other things about CSS and js, is that foolish coders who don't
        know better put that crap on a separate file. That means each time
        it is called, it has to request the file from the server. Each request
        from the server adds to your page load time. It is better to
        put the javascript and CSS in your html for THAT page. When
        possible, that is. There are times that you would really like
        a separate file.

        Having a separate css file, bloated with crap, is nonsense.

        If people would stop using WP and code themselves, they
        would solve a ton of problems.

        Paul
        Signature

        If you were disappointed in your results today, lower your standards tomorrow.

        {{ DiscussionBoard.errors[7494706].message }}
        • Profile picture of the author adlol
          Originally Posted by paulgl View Post

          Has nothing to do with the adsense code. Certainly
          nothing to do with a javascript placement of adsense.
          Probably would not work in most cases anyway.
          Php, now that's another story. In fact, google is hinting
          to the fact that I have brought up many times. Don't bloat
          your site with idiotic CSS and js scripts. In fact, they
          are saying DON'T put javascripts on an outside page if possible.

          Like I said, adding adsense via javascript probably won't work right,
          and is borderline against TOS anyway. Plus, you have to call TWO javascripts
          from an external page, further adding to site load time.


          Adding it with php is fine, but even then it still means another call to
          the server, adding load time.

          You don't need CSS for most things, if any. Why people use it,
          who knows. It's like used to be cool or something. Complete
          waste of coding. Html has default settings for a reason.

          What they are saying, is something like this. If you are using images,
          don't use big, different images on each page unless you need to.
          Use one header graphic on each page, from the same jpg file.
          That is, once the image loads for a user on the front page, it does
          not need to be called upon to load. It's in the cache. It sounds like
          each page has a unique url for images instead of using the same one
          over and over. That's just an example. You'd have to look close at
          your case.

          The other things about CSS and js, is that foolish coders who don't
          know better put that crap on a separate file.
          That means each time
          it is called, it has to request the file from the server. Each request
          from the server adds to your page load time. It is better to
          put the javascript and CSS in your html for THAT page. When
          possible, that is. There are times that you would really like
          a separate file.

          Having a separate css file, bloated with crap, is nonsense.

          If people would stop using WP and code themselves, they
          would solve a ton of problems.

          Paul
          Whatever, its best practice to put them on a separate file. Not only to help page load times, but to also have one .css you can edit once and change the styles across the whole site.

          As for saying there is no need to use CSS, sorry but your websites must look like they come from the 90's.
          Signature
          "Listen up close to what I say, because I am going to head out west one day, I heard about a fortune to be made..... and I am going to get it just you wait.. because I heard there is gold in these hills."
          {{ DiscussionBoard.errors[7494736].message }}
          • Profile picture of the author paulgl
            Maybe you don't understand. Each time you ask the browser to
            access your server, you are adding to load time.
            Do not put them
            in a separate file unless you have too. I don't know why you
            keep saying put them in a separate file. That's crazy.

            You should NEVER do that with a javascript and adsense anyway.

            Php adds html. Calling a javascript does not.

            Having your adsense in a separate javascript file is pretty close
            to being against TOS. And, your ads are most likely going to be
            very screwed up, even if it did work!

            What does CSS do? Nothing that can't be readily done using html.
            1990's? You have got to be kidding. Why would I need to define
            each and everything on my site using CSS?

            I can only assume that you have no clue as to what CSS is.

            I can put <font color=whatever on the same page. I DO NOT need
            to call an external CSS page to find out what color the next text
            should be. And since default backgrounds are white, text is black,
            links are blue....I'd be one stupid idiot to put that in a separate CSS
            file if I could avoid it. I dunno people. Seriously. If people looked at
            "normal" css, they'd think the programmer has gone nuts.

            In fact, that's the MAJOR reason people must come here for WP help.
            The CSS makes any changes a huge chore. No wonder people need
            a plugin. They can't fugure out where to type in the adsense code
            because everything has some div idiocy with it! And I can use
            div without CSS!

            Paul
            Signature

            If you were disappointed in your results today, lower your standards tomorrow.

            {{ DiscussionBoard.errors[7494753].message }}
            • Profile picture of the author adlol
              Originally Posted by paulgl View Post

              Maybe you don't understand. Each time you ask the browser to
              access your server, you are adding to load time.
              Do not put them
              in a separate file unless you have too. I don't know why you
              keep saying put them in a separate file. That's crazy.

              You should NEVER do that with a javascript and adsense anyway.

              Php adds html. Calling a javascript does not.

              Having your adsense in a separate javascript file is pretty close
              to being against TOS. And, your ads are most likely going to be
              very screwed up, even if it did work!

              What does CSS do? Nothing that can't be readily done using html.
              1990's? You have got to be kidding. Why would I need to define
              each and everything on my site using CSS?

              I can only assume that you have no clue as to what CSS is.

              I can put <font color=whatever on the same page. I DO NOT need
              to call an external CSS page to find out what color the next text
              should be. And since default backgrounds are white, text is black,
              links are blue....I'd be one stupid idiot to put that in a separate CSS
              file if I could avoid it. I dunno people. Seriously. If people looked at
              "normal" css, they'd think the programmer has gone nuts.

              In fact, that's the MAJOR reason people must come here for WP help.
              The CSS makes any changes a huge chore. No wonder people need
              a plugin. They can't fugure out where to type in the adsense code
              because everything has some div idiocy with it! And I can use
              div without CSS!

              Paul
              Saying "The CSS makes any changes a huge chore", basically means you have not got a clue about CSS. CSS is there to make designing sites easier and making changes easier, especially when they are used externally.

              You obviously have no clue how to build websites correctly if you use inline CSS, or think CSS is useless. Not even worth debating.
              Signature
              "Listen up close to what I say, because I am going to head out west one day, I heard about a fortune to be made..... and I am going to get it just you wait.. because I heard there is gold in these hills."
              {{ DiscussionBoard.errors[7494788].message }}
    • Profile picture of the author glemoh
      Originally Posted by adlol View Post

      I think it means put your Google Ad Sense code into one external .js file and then reference that in each of your pages where you want the code to run.

      That way the browser remembers ( caches ) where the file is and remembers the code and doesn't load it over and over again individually every time for each page, hence speeding up page view times.
      this mean if i put adsnese code on every post on different place ( using quick adsense ) can affect on my site?
      {{ DiscussionBoard.errors[7494653].message }}
      • Profile picture of the author connorbringas
        I could be completely wrong, but it sounds like your page loading speed is extremely slow.
        {{ DiscussionBoard.errors[7494673].message }}
  • Profile picture of the author donclicksblog
    Thank you for coming to my aid

    Am a newbie....just tell me how to do this, everything you guys are saying sound strange and too technical for me. what will i do to fix this prblem
    {{ DiscussionBoard.errors[7494866].message }}

Trending Topics