mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
only process code highlighting under the new content (to avoid redoing the dom)
This commit is contained in:
parent
26e80bfc49
commit
e808b8f994
@ -13,8 +13,8 @@
|
|||||||
<script src="/js/preload.js"></script>
|
<script src="/js/preload.js"></script>
|
||||||
<script src="/js/_hyperscript.js"></script>
|
<script src="/js/_hyperscript.js"></script>
|
||||||
<script>
|
<script>
|
||||||
htmx.onLoad(function(){
|
htmx.onLoad(function(content){
|
||||||
Prism.highlightAll();
|
Prism.highlightAllUnder(content);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user