| | как вариант - ссылка погуглил минут 10. Примерно такая реализация была на уме. потом дальше... глянул. Нашел проект YUI 2: ImageLoader - где появилась такая деталь:
Развернуть текст"src" Attribute of Source Images When using ImageLoader with <img> elements (via the registerSrcImage method), leave the src attribute out of the HTML element altogether. Do not set an empty string for the value of src. Some browsers react to this by assuming the empty string means "/", and consequently the browser re-requests the current HTML page and tries to stuff it into the <img> element. This is bad news for performance. <img id="anImgEl" /> <img id="anImgEl" src="" /> [свернуть] поэтому стало понятно вступление на странице lazy load:
Развернуть текстLatest version of Lazy Load is not a drop in replacement to your webpage. New browsers load image even if you remove the src attribute with JavaScript. Now you must alter your html code. Put placeholder image into src attribute of your img tag. Real image url should be stored data-original attribute. [свернуть] Выводы не однозначные. Надо глубже разбираться... Исходя из этого советую, переписать формирование картинок в самой цмс (тем более самопис), и пушить адрес картинки в атрибут data. |
| |