Caching js lib and html content in webview with React native - caching

I wrote an app with react native, but it is hard for me to draw charts in the app.
I used a WebView to show the charts view but I found it is slow to load that way.
Is there any way to cache the js lib and WebView context locally so that when the app starts it doesn't need to load the js and html content from server?

Related

Can I parse a webpage as a browser would and get back the html DOM element in swiftUI?

I'm trying to scrape an Instagram page using SwiftSoup, but when I run let html = try String(contentsOf: URL("https://www.instagram.com/sasawpi/"), I get back a bunch of JS functions and CSS styles like this, probably because Instagram uses React and some package control to send files over from the server. My question is, can I render it as an HTML DOM, like a browser would, and get it as a text inside of SwiftUI using SwiftSoup or some other library. WebView renders web pages so one of my suggestions was to render it with WebView but I don't know how to get this HTML DOM as text from WebView either.

How to make web page load when scrolling in laravel project

I am doing a laravel project. i want to make web page content load when scrolling. i tried with several types. but not suceed.

How to intercept Xamarin's WebView javascript API calls

We are trying to intercept in Xamarin Get API calls done in WebView.
The reason we do it - is we want to implement such flow:
for Example:
there is index.html that we are navigating to in newly opened WebView in Xamarin. And this index.html has let's say 2 resources: 1) abc.css and 2) def.js files. When WebView container will load index.html it will try to load this to files by making two Get API call, and we want to create interceptor on Xamarin side which will check: 1) if there is abc.css exists in Xamarin app 2) if yes stop loading it from server, but provide it to WebView instead.
Can we create such kind of interceptor in Xamarin?
I did my research and I found that Xamarin can intercept Navigating events, but this is very different to Get API calls.

how to integrate an png image with html imagemap in gwt app

my gwt app uses an external lib to render charts (birt). this lib is able to provide an html/js-imagamap with the rendered png.
but what is the best way to integrate it in gwt front-end? my first idea was to let the lib generate html with imagemap and embedded (base64) image. the html could be easily integrated?!
but base64 is noot good for ie6/7 (ie8 max 32kb). so is there a way to link the image in html and write an servlet/gwt-service to fetch image on loading the html? or is ther a much easier way?
If you already have the html+js/css generated, why not just render that as an iframe in your main app? its simple and effective.

how to do to make sure phonegap js load just once time in an app with many separate pages?

Use phonegap 1.6,now called cordova 1.6, with jquery mobile 1.0.1,but I feel performance is a problem.
Also with some other js libs,such as iscroll.js, plus the performance problem.
Can I load phonegap js just once,and later all pages can still use phonegap api?
I have an idea that Page A load phonegap js ,and nested iframe refer Page B.
Page B will replace by other pages. Can Pages in iframe use its parent phonegap api?
eg: parent.(all phonegap api)
You can use jQuery Mobile data-role="page" to define multiple pages on a single html page with one phonegap.js load.
See the docs at http://jquerymobile.com/demos/1.1.0/docs/pages/page-anatomy.html

Resources