xeoncross / jr

Jr. the static, static javascript site generator (you should see this)
Other
758 stars 39 forks source link

Footer doesn't show up when page reload #22

Closed Gusatomik closed 10 years ago

Gusatomik commented 10 years ago

On any page, when I reload the page, everything display correctly but the footer, which is absent.

Edit : it is a random phenomen, it happen often when I reload pages...

xeoncross commented 10 years ago

What browser and OS are you using?

Gusatomik commented 10 years ago

I tried with Mozilla 31.0 on Microsoft Windows and Safari on iPad/iPhone and i will try with Iceweasel on Debian 7.

Note: i didn't get this issue with Jr v1 and i'm don t have already the skills to guess which code line is gulty, sorry. :/

Gusatomik commented 10 years ago

bug_jr

xeoncross commented 10 years ago

Sorry about the delay.

On Firefox, Chrome, or Safari you can open the "console" or "developer" tab. Inside there should be a "net" or "network" tab that would mention any 404 requests or requests that are failing.

Are you running this on your desktop? Are you viewing the demo site here on github?

tyeeman commented 10 years ago

Yes, I am getting the same thing, no footer, but.....only when I view index.html in browser directly. If I simulate the web using apachefriends server, I get the footer showing properly. In the previous version of jr both of these cases worked properly. Needs fixing I guess.

Gusatomik commented 10 years ago

The screenshot I made was from https://xeoncross.github.io/jr

With the console i got this :

ReferenceError: prettyPrint is not defined jr.js:167

xeoncross commented 10 years ago

Ok, this should be fixed. It was a bug with google's prettify.js not loading in time and killing the script.

Gusatomik commented 10 years ago

It seems OK ! Thank you David.

And nice job by the way :-)