Locomotive-scroll script not working showing 404 not found

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

<script src="locomotive-scroll.min.js"></script>
when i add the above code in my file it shows error : Refused to execute script from ‘http://127.0.0.1:5500/locomotive-scroll.min.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
cdn link works but i dont want to use that because it make website slow
can anyone plz help me fix this?

Hi @hasaanqari9 ,

I just moved your thread from the “BUG” category to the"How To" category.

If you do not want to use CDN source, did you save the locomotive-scroll.min.js and place in a proper location like inside your child theme?

Let’s say you placed it inside my-child-theme/assets/

Then you should use this script

<script src="/wp-content/themes/my-child-theme/assets/locomotive-scroll.min.js"></script>

Regards,
Jenn