techcvr
(Vishal)
1
Hello community…
I was wondering if I can restrict image load on a webviewer. So that I can give user an option to make image load or not while surfing internet.
Just like data save option in chrome browser to make website load faster.
If anyone have any suggestions then do let me know, i want to add this feature to TBrowser if possible.
If not then I’ll request makeroid team to consider this.
FYI - I searched google for this and didn’t get any help.
1 Like
Cant we execute this command on webviewer
$(document).ready(function() {
/* *** PREVENT OBJECTS FROM LOADING *** */
$(“img, embed, iframe”).each(function() {
var obj = $(this);
obj.data(“objsrc”, obj.attr(“src”));
obj.hide().attr(“src”, “”).before(“<span class="loading">”);
});
});
newrr_live
(Newrr Live)
4
Please guide us how to use it
pavi2410
(Pavitra Golchha)
5
He meant to disable loading images, whereaas your code does “lazy-loading” of image, and others.
1 Like
We can use get
And replace .png .jpg .gif
With .others 

Lets try ones
techcvr
(Vishal)
7
Thanks for the reply @pavi2410. It will be great if we have this option in webviewer settings.