Discussions » Greasy Fork Feedback

Browser freeze when viewing script code in GreasyFork (Waterfox and Chrome)

§
Posted: 2019-01-16
Edited: 2019-01-16

Browser freeze when viewing script code in GreasyFork (Waterfox and Chrome)

Tested on different profiles and with/without others scripts enable. Test link: https://greasyfork.org/fr/scripts/376683-picviewer-ce/code

On Waterfox i have script error message about: "run_prettify.js" It freeze with scripts enable/disable. Idem if i only disable the script "Linkify Plus Plus v.9.0.0"

On Chrome ,it freeze too but if i stop the script "Linkify Plus Plus v.9.0.0", that's ok. It's ok too if i add exclude for it: // @exclude https://greasyfork.org//scripts/

§
Posted: 2019-01-19

I recently switch the library used to do syntax highlighting. I thought this one could handle even very large scripts. I thought wrong.

I've re-added the logic to skip syntax highlighting for scripts > 500KB.

wOxxOmMod
§
Posted: 2019-01-19

@JasonBarnabe, could you simply reuse AceEditor in a read-only mode? If it's like CodeMirror then it should be able to handle huge scripts almost instantaneously without stressing the client browser.

§
Posted: 2019-01-19

ok that's not my fault :-)

Post reply

Sign in to post a reply.