Skip to content

Commit 24be359

Browse files
committed
try window load
1 parent 301a741 commit 24be359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2022-09-06-ant-colony-optimization-tsp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sitemap: true
1111

1212
{% raw %}
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
14-
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
14+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
1515
{% endraw %}
1616

1717
Ant Colony Optimization algorithms always intrigued me. They are loosely based in biology and the real protocols ants use to communicate and plan routes. They do this by coordinating through small pheromone messages: chemical trails they leave as they move forward, signaling for other ants to follow them. Even though each ant is not especially smart, and they follow simple rules individually, collectively they can converge to complex behaviors as a system, and amazing properties emerge.
@@ -266,7 +266,7 @@ I would like to try Ant Colony Optimization for problems other than TSP in the f
266266

267267
{% raw %}
268268
<script>
269-
document.addEventListener('load', (event) => {
269+
window.addEventListener('load', (event) => {
270270
document.querySelectorAll('pre code').forEach((el) => {
271271
hljs.highlightElement(el);
272272
});

0 commit comments

Comments
 (0)