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

performance issue #121

Open
wasap opened this issue May 7, 2020 · 1 comment
Open

performance issue #121

wasap opened this issue May 7, 2020 · 1 comment

Comments

@wasap
Copy link

wasap commented May 7, 2020

i tried to render https://raw.githubusercontent.com/request/request/master/README.md. it lags so much and uses all my CPU, my inputs becomes unclickable
replaced this package with showdown. and now it works with no load
<div v-html="mdHTML" />
and script

const showdown = require('showdown');
const converter = new showdown.Converter();
const md = await fetch(this.helpText).then(res => res.text());
this.mdHTML = converter.makeHtml(md);
@wasap
Copy link
Author

wasap commented May 7, 2020

this watchers kills my pc

this.$watch('source', () => {
this.sourceData = this.prerender(this.source)
this.$forceUpdate()
})
this.watches.forEach((v) => {
this.$watch(v, () => {
this.$forceUpdate()
})

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

1 participant