Answer the question
In order to leave comments, you need to log in
How to execute external scripts while routing?
Hello, there is a script like
if(document.querySelector('.someClass')){ animate }
<script src="public/index.js"></script>
Answer the question
In order to leave comments, you need to log in
You need to use functions! Seriously.
They can be called any number of times.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question