Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White page after click #48

Closed
timecamp opened this issue Mar 5, 2014 · 4 comments
Closed

White page after click #48

timecamp opened this issue Mar 5, 2014 · 4 comments

Comments

@timecamp
Copy link

timecamp commented Mar 5, 2014

Having problems with script with wordpress. White page on localhost and production.

screen shot 2014-03-05 at 10 15 58

@dieulot
Copy link
Owner

dieulot commented Mar 5, 2014

The culprit may be WordPress stats, if you use that, see #20 (comment).

@dieulot dieulot closed this as completed Mar 5, 2014
@timecamp
Copy link
Author

timecamp commented Mar 6, 2014

I use self hosted wordpress so don't have WordPress stats, here is a page that the problem can be reproduced:

http://www.timecamp.com/en/2014/03/test/

I have also the same problem working in localhost.

@dieulot
Copy link
Owner

dieulot commented Mar 6, 2014

Oh, thanks, it’s actually a bug from InstantClick, it’s re-evaluating scripts in the <head> and it shouldn’t.

If you wish to use it now, replace line 155 :
var scripts = document.getElementsByTagName('script'), script, copy, parentNode, nextSibling
by
var scripts = document.body.getElementsByTagName('script'), script, copy, parentNode, nextSibling

@dieulot dieulot reopened this Mar 6, 2014
@timecamp
Copy link
Author

timecamp commented Mar 6, 2014

Great thanks. It's working.

@timecamp timecamp closed this as completed Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants