Topic: How to put few small Internal js snippets into one External js file

demzl25 pro asked 1 year ago


Expected behavior

Hi,

How to put few small Internal js snippets into one External js file ?

Actual behavior

When I put few small Internal js snippets into one External js file and remove script tags this js snippets do not work.

*Resources (screenshots, code snippets etc.)*Here is link to the code snippets:

https://mdbootstrap.com/snippets/standard/demzl25/4031563

Thanks,

Damjan


Kamila Pieńkowska staff answered 1 year ago


If you want to use external js file you need to put your code into file with .js extension, without script tags inside it - those are httml tags. But you need to import this file in your html file on the bottom of body tag.

If you need further explanation please provide also html file content.


demzl25 pro commented 1 year ago

Ok thanks, this is helpful,

Damjan



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.1.0
  • Device: Pc
  • Browser: Chrome 97.0.4692.99
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes
Tags