New answers tagged

1

Ideally your browser should always go back through the history of content shown on the page including content which has been added using AJAX. Now historically this has been difficult and has involved using hashtags in the URL and capturing the hashtag using javascript on page load and then re-initiating the AJAX call in question but since the inception of ...


2

I have seen images loaded with this pattern: <img data-src="path/to/image.jpg" class="js-lazy-load" /> get picked up by Google and Google Image Search and others have spotted it too. Since Google now executes javascript on your page, there may be no need to put the actual image into the src attribute. Neglecting a src attribute might lead to a grey ...


3

If you are using multiple trackers, then you need to name your trackers (or at least one of the two, but better to name both so there's no ambiguity). Much like the Classic (_gaq) code you've posted, you would do the same with the Universal trackers and provide the name along with the method: // tracker 1 named "someName" ga('create', 'UA-ZZZZZZZ-X', ...


2

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 ...


0

You can use another technique. Its is web-socket service( example -firebase) to share changes. This will help to minimize request and need of reloading. If need more details,reply on same thread so we can add more points(detailed explanation)


0

Useful feature, but doing a hard browser refresh is the wrong way to do it. Users will hate you and quit in droves (which will, at least, solve the server-load issue.) It's done on browser side with Javascript and timers, but like I say... don't. Sites that do it well use stuff like AJAX to poll the server and rewrite parts of the page as needed. That ...



Top 50 recent answers are included