Skip to content

add external-script plugin #115

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

Merged
merged 2 commits into from
Mar 7, 2017
Merged

Conversation

Leopoldthecoder
Copy link
Contributor

大佬请过目

if (asyncReg.test(scriptMatch[0])) script.setAttribute('async', '')
if (deferReg.test(scriptMatch[0])) script.setAttribute('defer', '')

const target = document.querySelector('#main')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬不如缓存下 dom 吧,省点是点,或者你可以用 Docsify.dom.getNode,还有补充下文档说明下可以用 jsfiddle 了吧

大佬辛苦了

@Leopoldthecoder
Copy link
Contributor Author

好了

@QingWei-Li QingWei-Li merged commit 9e9ad57 into docsifyjs:master Mar 7, 2017
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.

2 participants