Html that loads another html page on the same folder
I routinely export all bookmarks onto an html and this is my home page. When this is loaded, the dns prefetch annoyingly sends hundreds of dns requests. To disable dns prefetch for this page only, it requires this line to be added to the html:
<meta http-equiv="x-dns-prefetch-control" content="off"> Which is lost every time the bookmarks are exported. Instead, it would be nice if an additional html was used and set as the home page that loads the actual bookmarks html while disabling dns prefetch as above. How does an html page load another html page located on the same folder? |
Quote:
Code:
<meta http-equiv="refresh" content="0; url=home.html"> From the chrome (didn't check any other browsers) docs: Quote:
Code:
<meta http-equiv="x-dns-prefetch-control" content="off"> |
Just tried it. It does not work with local files. Chrome seems to have dns prefetch disabled for local files. Firefox has it enabled but does not disable it this way.
|
Sorry, for some reason I thought you were serving the page not just opening it in a browser.
|
Any other way to embed an html file inside an html file?
|
Quote:
|
The HTML5 object tag works. Here's the complete html with the object size adjusted to fit the window:
<TITLE>Bookmarks with dns prefetch disabled</TITLE> <meta http-equiv="x-dns-prefetch-control" content="off"> <object name="foo" width="100%" height="99%" type="text/html" data="bookmarks.html"></object> One minor annoyance: you need to open links in a new tab or window otherwise the url does not appear in the url bar and new sites do not appear in history. |
All times are GMT -5. The time now is 02:57 AM. |