[NRNS] Gaming Community
Help and Support => Technical Support - Website => Topic started by: [NRNS]HANNIBAL on May 08, 2018, 09:09:25 AM
-
Hi there ,
bf3 server stats are not loaded, its load only the first general stats
but no details like Expert League , Premier League , players details etc...
its loading for ever
thanks
-
ok noted
-
:)
-
This is a summary of the discussion(s) from Discord:
The error is caused by the site trying to load insecure versions of 3 google API files. Modern browsers refuse to load (or maybe can't, idk) insecure files while in a secure mode (https). (Client-side) Loading the secure versions of the files allows the page to run successfully.
The insecure files are the following:
- http://maps.google.com/maps/api/js?sensor=true
- http://fonts.googleapis.com/css?family=Lato:400,700
- http://fonts.googleapis.com/css?family=Cuprum:400,400italic,700,700italic
The secure files are the following:
- https://maps.google.com/maps/api/js?sensor=true
- https://fonts.googleapis.com/css?family=Lato:400,700
- https://fonts.googleapis.com/css?family=Cuprum:400,400italic,700,700italic
If the user pauses the page (ie: via a breakpoint) before the page initiates the Google API the user can inject the correct files then resume the page. The page will still try (and fail, with an error message) to load the insecure files but since it has already loaded the secure files the API runs successfully anyway and the user can interact with the page normally.
The following JavaScript code block is one way to inject the secure files:
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.google.com/maps/api/js?sensor=true';
document.head.appendChild(script);
var script = document.createElement('link');
script.type = 'text/css';
script.rel = 'stylesheet';
script.href = 'https://fonts.googleapis.com/css?family=Lato:400,700';
document.head.appendChild(script);
var script = document.createElement('link');
script.type = 'text/css';
script.rel = 'stylesheet';
script.href = 'https://fonts.googleapis.com/css?family=Cuprum:400,400italic,700,700italic';
document.head.appendChild(script);
I did *not* find an automated way to accomplish this without extensions.
-
fixed, i guess
-
fixed, i guess
Thanks. It's working for me.