Skip to content

Add an option to load all gists asynchrously #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knalli
Copy link

@knalli knalli commented Feb 6, 2014

Until now, all gist will be load via https://gist.github.com/$id.js which is only a script containing 2 document.write(!). Considering website performance (document.write is a blocker), this change introduce deferred loading of gists. At the moment, this is completely backwards compatible and is not turned on at default, because it requires jQuery (jQuery is not included maybe).

To enable, just define EMBED_GISTHUB_DEFERRED to true.

Until now, all gist will be load via https://gist.github.com/$id.js which is only a script containing 2 document.write(!). Considering website performance (document.write is a blocker), this change introduce deferred loading of gists. At the moment, this is completely backwards compatible and is *not turned on at default*, because it requires jQuery (jQuery is not included maybe).

To enable, just define `EMBED_GISTHUB_DEFERRED` to true.
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

Successfully merging this pull request may close these issues.

1 participant