A
A
Albert2018-11-10 08:54:51
Google
Albert, 2018-11-10 08:54:51

What part of the Google images page code is responsible for automatically reloading images on mouse scroll?

On the desktop version of Chrome, Google images search results are displayed as follows:
first, a certain number of images (about 100) are loaded, then when they are scrolled with the mouse, a new part is loaded, then another one.
If after that the user wants to continue the search, he needs to click on the "Show more results" button. This button is not interested. Only the first paragraph is of interest.
where and how is it determined in the html code of the page that new results should be loaded?
How to change this code so that all results (about 300) are loaded at once? That is, so that the site does not wait until I turn the mouse.
Found the code at the bottom of the page

(function(){var qae=false;(function(){var a=function(){google.isr||(google.isr={});google.isr.layout.moveAndLayoutNewResults();google.isr.bg_ready=!0;google.isr.bgd&&google.isr.bgd()};qae?google.x({id:"i_lf_s"},a):a();}).call(this);})()

It looks like it's related somehow.
PS: I need it for my application - a simple browser, I write in python using cefpython.
It will have an option to filter (not display) certain results (eg already viewed images).
I’m still swimming in the topic, in my own words - with the help of cefpython, you can get page data, change it before loading, and then display it.
At random it was possible to delete any displayed search results, but after that new images are not loaded.
If you do not delete, but for example change the links or the width / height of the pictures, then everything works.
It seems that there is a script included that if there are less than 100 pictures, then this means the end of the search.
I want to get around this somehow.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question