ScreenShot.png
I use UIWebview to load a remote page generated by nodejs.
[self.webview loadRequest:request];
Page is rendered correctly in the first load, but not rendered and the UIWebview shows weird HTML source code after reload. I tried to change any kind of cache policy, but is still not able to fix it.
Anyone encountered same issue before?
Many Thanks.
Related
I'm trying to apply my CSS-file to my webpage.
When I load my website, I shortly see the site rendered correctly (with my CSS-styles applied), while the page is still loaded. When the page finished loading some of the styles I defined with CSS dissappear, for example the background-color or the alignment of some texts. Sometimes when I reload the page the site is rendered normally without me changing the browser or the code. I allready tried deleting the browser cache but nothing changed. I use Google Chrome. I can see that the CSS-file must be loaded correctly, as some of the styles are applied, and the page reneders correctly while the loading processes.
This is an image of my site while loading:
This is an image of my site after loading:
Thanks for your help.
It seems like some other css or js file is loaded after your css file. please provide a link to your page or post the html.
If you use the development tools (F12) you could interspect the Network tab. here you can see whitch files are loaded and in witch order they are
Sometimes images are not loading properly in my website. Not completely. Lets say page includes 15 images. Two or three images not loading properly. Showing like this. When I refresh page, all images loading fine.
(Browser cache disabled)
The strange thing is this. If I inspect not loaded images using dev tools, get image url and paste it into new tab. Image is there!
I just want an idea why this is happening. Is this common issue? or bad host? long css file? or other issue?
This website contains more than 13,000 images stored in db.
One of my testers for an app that loads URL's in a UIWebView, reported that sometimes, instead of seeing a normal, rendered webpage, he saw the HTML code for it (like he would be viewing the source of the webpage).
Does anyone know in what case this would happen?
One of the possibilities that my team was throwing around was that there could be some invalid HTML/JS that couldn't be parsed correctly.
My iOS app needs to work completely offline if the user downloads all the data. Some views are mobile websites, so all I do when a user views a website online is download the URL from the database and display that in a UIWebView.
However when the user decides to download all the data for offline usage I need to display that webpage offline.
I tried
NSData *myPagedata = [NSData dataWithContentsOfURL:[NSURL URLWithString:#"http://www.domain.nl/"]];
and then display that data in an UIWebView
[_webView loadData:myPagedata MIMEType:#"text/html" textEncodingName:#"UTF-8" baseURL:nil];
But that doesnt save CSS and images.
I also found out that ASIWebPageRequest can do this but thats a dead project. Does anybody know how I can display a webpage offline with CSS and images?
You might take a look at AFCache. https://github.com/artifacts/AFCache
I have not tried this library but it looks promising.
I have a site with a small flash content. The flash content doesn't load when the page loads, only if I refresh the site manually. It does it on more browsers so it's not about compatibility, and when I refresh the site it works so the embeding is fine too.
When I close the browser and open it again the problem starts again.
Could somebody help me?
Thank you.
In Opera I got (once) the error message (from Flash player): some xml file was missing (can't reproduce this error anymore).
Is this xml file created 'on the fly'?
Check the server if it always serve the file properly.