Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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

demzl25 priority asked 2 years 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 2 years 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 priority commented 2 years 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: Priority
  • Premium support: Yes
  • 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