You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We check if the global variable hljs is present. If not, we load the script. But it seems that if we load multiple code snippets fast enough, hljs will be undefined while they are being loaded, causing multiple <script> tags to appear to load highlightjs.
This issue may or may not appear depending on the internet connectivity. But it is there. To mitigate this issue, I suggest that we check the existence of the script tag loading highlighjs library instead of checking hljs variable.
The text was updated successfully, but these errors were encountered:
In this part of the code:
emgithub/embed-v2.js
Lines 340 to 342 in 684c444
We check if the global variable
hljs
is present. If not, we load the script. But it seems that if we load multiple code snippets fast enough,hljs
will beundefined
while they are being loaded, causing multiple<script>
tags to appear to load highlightjs.It can be seen on my website:
This issue may or may not appear depending on the internet connectivity. But it is there. To mitigate this issue, I suggest that we check the existence of the
script
tag loading highlighjs library instead of checkinghljs
variable.The text was updated successfully, but these errors were encountered: