How to disable lazy load on mobiles? - jquery-lazyload

I have installed the Appelsiini Lazy Load and it works fine on desktop view. How can i disable this to mobile. This is the website of the lazy load - www.appelsiini.net/projects/lazyload

Related

How to persistent background page in Safari extension

I used xcrun safari-web-extension-converter to convert my chrome extension to safari extension but it built with this warning
Warning: Persistent background pages are not supported on iOS and iPadOS. You will need to make changes to support a non-persistent background page.
Also when using it on safari, it is showing these errors:
Extension errors in safari
How can I debug the errors in the extension? I'm not sure about the error but the persistent page warning seems to be a good place to start with. While searching for it in google, all I got is results for non-persistent background pages.
Do let me know if any more information is required.
PS:
The extension option in the "develop" menu of safari is also disabled due to service_worker failed to load error.
From WWDC21-10104:
The background page is a web page that the browser loads to run your
extension's background script. And this page allows your extension to
handle events sent by the browser or other parts of your extension.
But keeping this page loaded has a performance cost. It can use memory
and power as if you were keeping one more tab open and running for
every enabled extension. Keeping all these pages loaded all the time
can be pretty wasteful. But you can make a background page
non-persistent, which means the browser will only load it when your
extension actually needs to do work, and the browser can later unload
that page when it's been idle for some time. That way, the performance
cost is only paid while your extension is doing something useful. This
is important because background pages must be non-persistent on iOS,
where system memory and battery life are especially at a premium. The
web extension templates in Xcode already come with a non-persistent
background page, so they're ready to run on iOS. But if you have an
existing extension that uses a persistent background page like Sea
Creator did, you'll need to change it to be non-persistent. And you
can do that by adding that "persistent:" False key in the background
section of your manifest.
So you can solve it by adding this to your manifest.json:
"background": {
"scripts": [ "background.js" ]
"persistent": false
}

Is live reloading ever preferrable to hot reloading?

When creating an app with react-native init I have hot reloading and live reloading automatically configured and can enable them from the developer tools. I understand that Live Reload will reload an app, whereas Hot Reload will just reload changed files and maintain your current state in the development environment.
From these descriptions I've read it sounds like Hot Reloading is always preferable to Live Reloading and I should never even bother to enable Live Reload. I'm curious to know if there is any time where Live Reload is more advantageous? Or is it just some sort of built in fallback in case Hot Reload won't work with your other dependencies?
When it's about UI things hot reload looks enough. There some UI change that breaks hot reload. For example removing flex:1 for some components in android. I think for developing UI part it's okay to just use the hot reload. But when the logic comes, it's a different story. For example testing your fetch which lives is in the componentDidMount. You have to reload the app. Or you are debugging the app. Making some changes want to see the changes in the debugger.

Iframe loading/buffering issue

I am currently having some issues that I believe to be related to an iframe.
My website homepage has a video on, with a simple "play" button that when pressed will load on iframe with a url from my root, video.html with a embedded to play.
My site is load-balanced, I had no issues with apache 2.2 but now i am using apache 2.4.
The video and frame loaded instantly with 2.2, but in 2.4 I click the button - the audio for the video starts playing, but the tab is loading something and soon after the video appears.
I can close the video and reopen and it does the same thing. In all browsers
I can visit the referenced URL in the iframe to pull the video from via the balancer and it plays right away.
Anyone know what sort of configuration element i may be missing? :)

vb.net + webbrowser/webkitbrowser + collada viewer

I am currently working on a vb.net application (winforms) and my task is to somehow import collada files(.dae) files and make them viewable from inside the application.
What worked for me is this: In a simple html5 webpage, I used three.js, colladaloader.js and I was able to view the animation in my web browser.
So I thought I can just import this into the vb.net application using the webrowser/webkotbrowser toolbox component. But alas, what worked in a normal html browser did not inside the application.
The browser that we import in the application doesn't support webgl (even the webkit version doesn't support it).
This is what I get instead of the animation
Again, it works fine inside a web browser like Chrome or Safari, but not IE.
Any help to make this possible in vb.net is highly appreciated.
You will probably have to use a NON-IE based web browser control, see this post:
What is the best web browser control to use on Windows Form Application?
his geckoFX link is outdated I think...
http://webkitdotnet.sourceforge.net/
https://bitbucket.org/geckofx/
This one costs money:
http://awesomium.com/

Play HTML5 video locally

I have created a presentation application with HTML, CSS and JavaScript which is going to be executed from a CD. Everything is fine with images and JavaScript but now I want to include a video. I have tried www.videojs.com and it is working fine in Chrome, but I can't get it working with Firefox.
How can I include a video inside a HTML page that can be played locally, without any web server involved? The browser is going to be Firefox portable only.