How can I use the type="module" in a script? (Mobile)

 <script type="module" src="-------------"></script>

Hey, so, I need to use a script, but I need it's type to be a "module" instead of a regular script, how can I achieve this? Bare in mind I'm on mobile


I imported the script and I'm using it on the screen, using F12 I can see it is consuming the screen, just doesn't have the type I need.



Hi Fábio,

What is a script of type module?

Why does the type need to be "module", actually to include a javascript file type attribute is not at all required for many years.

Regards,

Daniel