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

gists don't load/render properly #52

Closed
voigt opened this issue Jan 21, 2014 · 4 comments
Closed

gists don't load/render properly #52

voigt opened this issue Jan 21, 2014 · 4 comments
Labels

Comments

@voigt
Copy link

voigt commented Jan 21, 2014

Hey,

i found out, that e.g. Github gists which are embedded via <script> tags do not load after the ajax call.

Calling the Blogpost directly will load the gist as expected. Going via menu and loading the article via ajax doesn't render the gist in <script> tags.

Just try it:
Here is a direct link to a blogpost (the gist is visible).
Here you come to the landing page of the blog. Click the link "Gist does not render via ajax call" and you wont see any gist... ;)

Any guesses?

@jslvtr
Copy link

jslvtr commented Jan 25, 2014

It seems to render fine for me :O

@joeljacobson
Copy link

Agree Gist wont load until refresh. http://blog.joeljacobson.com/ansible-riak-playbook/

@Ardakilic
Copy link
Contributor

Happens on my side, too, using the latest version of ghost + ghostium.

I've tried altering this code in foot-script as mentioned in @yuters's comment #42 (comment):

a.support.pjax = window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/),a.support.pjax?v():w()}(jQuery);

To this:

a.support.pjax = false;

Posts did load without ajax, however, neither the cover loaded, nor the top square menu worked after altering this.

So as a temporary solution, I've deleted data-pjax attribute in list.hbs.

@oswaldoacauan
Copy link
Owner

Seems to be a Pjax issue, the <script> is appended to the <head> instead of the container.

My suggestion is upgrade Ghostium to the last release and disable Pjax via config.hbs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants