Skip to content

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