can not open *.htm files in browser.

Off-topic posts of interest to the "Everything" community.
Post Reply
Debugger
Posts: 247
Joined: Thu Jan 26, 2017 11:56 am

can not open *.htm files in browser.

Post by Debugger » Sat Nov 17, 2018 3:48 pm

can not open *.htm files in browser.
Keep getting the message:
The server took too much time to respond.
The code can be easily opened in a text editor.
The files are stored on the computer because the original source on the server no longer exists.

void
Site Admin
Posts: 4257
Joined: Fri Oct 16, 2009 11:31 pm

Re: can not open *.htm files in browser.

Post by void » Mon Nov 19, 2018 12:30 am

Your local files might be trying to reach out to a remote site for javascript, which most web browsers will block.

Try making a simple htm file with the contents:
hello world!

and see if your web browser will display it immediately.

Debugger
Posts: 247
Joined: Thu Jan 26, 2017 11:56 am

Re: can not open *.htm files in browser.

Post by Debugger » Mon Nov 19, 2018 2:13 pm

I checked, only the Internet explorer works *.htm file, why not in Chrome and similar browser to Chrome?

void
Site Admin
Posts: 4257
Joined: Fri Oct 16, 2009 11:31 pm

Re: can not open *.htm files in browser.

Post by void » Thu Nov 22, 2018 6:15 am

Please try the debug console in Chrome:
  • In Chrome, press F12.
  • Click the Console tab
  • Open your .htm file
  • Is there any information reported in the console?

Debugger
Posts: 247
Joined: Thu Jan 26, 2017 11:56 am

Re: can not open *.htm files in browser.

Post by Debugger » Thu Nov 22, 2018 4:03 pm

Code: Select all

Uncaught ReferenceError: addthis is not defined
    at 300lo.json:1
_ate.track.config_resp:1 Uncaught ReferenceError: _ate is not defined
    at _ate.track.config_resp:1
cb=gapi.loaded_0:1 Uncaught ReferenceError: gapi is not defined
    at cb=gapi.loaded_0:1
2opowiadania erotyczne   - strona 5.html:75 A parser-blocking, cross site (i.e. different eTLD+1) script, http://lib.onet.pl/s.csr/init/init.js?v=201810, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ opowiadania  - strona 5.html:75
apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pl.GE_yhFXmtjs.O/m=plusone/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMY9XcBSXK70SY8_zEsoJuuJlFAxA/cb=gapi.loaded_0:1 Failed to load resource: the server responded with a status of 404 ()
opowiadania    - strona 5.html:1 Refused to execute script from 'https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pl.GE_yhFXmtjs.O/m=plusone/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMY9XcBSXK70SY8_zEsoJuuJlFAxA/cb=gapi.loaded_0' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
sh.5146487cc7ea4d7c00930dfb.html:3 Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.

cb=gapi.loaded_1:1 Failed to load resource: the server responded with a status of 404 ()
opowiadania   - strona 5.html:1 Refused to execute script from 'https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pl.GE_yhFXmtjs.O/m=iframes_styles_bubble_mobile/exm=plusone/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMY9XcBSXK70SY8_zEsoJuuJlFAxA/cb=gapi.loaded_1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
gpt.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
xgemius.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
init.js:2 GET file://ocdn.eu/static/mastt/xgemius.js 0 ()
b.exports @ init.js:2
25../MvpOutside.js @ init.js:2
e @ init.js:1
a @ init.js:1
(anonymous) @ init.js:1
init.js:5 GET file://www.googletagservices.com/tag/js/gpt.js 0 ()
k @ init.js:5
b.exports @ init.js:2
d.initOnetAds @ init.js:4
d @ init.js:4
25../MvpOutside.js @ init.js:3
e @ init.js:1
a @ init.js:1
(anonymous) @ init.js:1
opowiadania    - strona 5.html:77 GET http://tpc.googlesyndication.com/safeframe/1-0-5/html/container.html 0 ()
2opowiadania    - strona 5.html:144 GET file:///C:/Users/***/Documents/images/bar/magnifier.png 0 ()
init.js:5 DLAPI ERROR: Duplicate declaration of slot: flat-config, id: onet-ad-flat-config 
o @ init.js:5
(anonymous) @ init.js:2
z.each.z.forEach @ init.js?v=201810:1
o @ init.js:2
p @ init.js:2
d.fetch @ init.js:4
(anonymous) @ init.js?v=201810:1
d.fire @ init.js:4
(anonymous) @ init.js:2
d.fire @ init.js:4
e @ init.js?v=201810:1
(anonymous) @ init.js?v=201810:1

ping.html:3 Nie można załadować adresu URL: Domena tego adresu URL nie jest uwzględniona w domenach aplikacji. Aby można było załadować ten adres URL, dodaj wszystkie domeny i poddomeny aplikacji w polu „Domeny aplikacji” w ustawieniach aplikacji.

void
Site Admin
Posts: 4257
Joined: Fri Oct 16, 2009 11:31 pm

Re: can not open *.htm files in browser.

Post by void » Sat Nov 24, 2018 3:32 am

2opowiadania erotyczne - strona 5.html:75 A parser-blocking, cross site (i.e. different eTLD+1) script, http://lib.onet.pl/s.csr/init/init.js?v=201810, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
My guess would be the page was blocked from loading because of a cross site reference. ie a local file://page.html is trying to access a script as a web resource.

I do not recommend this, however, try disabling web security in Chrome and see if it works:
https://stackoverflow.com/questions/310 ... -in-chrome

Debugger
Posts: 247
Joined: Thu Jan 26, 2017 11:56 am

Re: can not open *.htm files in browser.

Post by Debugger » Mon Dec 10, 2018 3:32 pm

Nothing works. Still the same error with the connection.

Post Reply