Frontmatter
| id | 565 |
| title | main.addon.HighlightJS => load script order |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | May 19, 2020, 8:12 PM |
| updatedAt | May 19, 2020, 8:16 PM |
| githubUrl | https://github.com/neomjs/neo/issues/565 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | May 19, 2020, 8:16 PM |
i noticed that sometimes the hljs linenumbers file does load faster than the hljs lib. this is a problem, since linenumbers does not work in case hljs is not already there.
we need to replace addScript with the promise based loadScript() and use then() to load the line-numbers.