![]() Actually, i'd advise to do that because 99% of visitors has it enabled anyway, and its simpler and more effective. You could ofcourse leave out the part and add style="visibility:hidden " to the iframe, but the above would make sure that the frame is visible for visitors with JS disabled. ("theframe").style.visibility = "hidden" Despite the worldwide distribution, toxicity and commercial, industrial and medical impacts jellyfish present, many aspects of their ecology remain poorly understood. ![]() Solution 6: use JS to inject CSS (simple version) Other solutions would be: Solution 5: Use JS to inject CSS: All the while a reload spinner is shown.Īll in all this feels like more like a mobile application: no reload flashes. Basically does a background ajax call to retrieve the full HTML contents, then extracts the body (the "page" div to be more precise) and then replaces the contents (with a transition if you like). We built a web interface that had to feel like a native app, so without reload flashes. Solution 4: If doing a mobile web interface: Hide this in near the top of your (parent) page: īut i'd advise using solution 2 instead. In case you are loading the iframe later (such as user clicking a link), consider preloading its contents. Ofcourse dont use this in combination with solution 1, you'll shoot yourself in the foot. While there is no content, the iframe should simply not be visible. This way, while the CSS file loads,parses, and gets applied, the background is not #fff. ![]() Set a different background color in your HTML header of the framecontents.html file, like so: Chironex fleckeri, commonly known as the Australian box jelly, and nicknamed the sea wasp, is a species of extremely venomous box jellyfish found in coastal waters from northern Australia and New Guinea to Malaysia, the Philippines and Vietnam. In case you just want to avoid the ugly white, and avoid over-complication. Does it reload periodically, or once when the whole webpage loads? Solution 1: Different background color From your question, its not entirely clear how you (want to) use the iframe.
0 Comments
Leave a Reply. |