# JavaScript Import

**URL:** <https://forum.mautic.org/t/javascript-import/4512>\
**Category:** General Discussion\
**Created:** [July 15, 2016, 7:27pm UTC](https://forum.mautic.org/t/javascript-import/4512 "2016-07-15T19:27:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedrolucasoliva](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pedrolucasoliva](https://forum.mautic.org/u/pedrolucasoliva)\
**Post date:** [July 15, 2016, 7:27pm UTC](https://forum.mautic.org/t/javascript-import/4512/1 "2016-07-15T19:27:42Z")

</div>

How can I import more than one JS file at my landing pages?  
  
The CSS import very well, but the JS imports, just the firt one.

---

<div class="post-metadata">

**Author:** ![pedrolucasoliva](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pedrolucasoliva](https://forum.mautic.org/u/pedrolucasoliva)\
**Post date:** [July 15, 2016, 7:27pm UTC](https://forum.mautic.org/t/javascript-import/4512/2 "2016-07-15T19:27:42Z")

</div>

How can I import more than one JS file at my landing pages?  
The CSS import very well, but the JS imports, just the firt one.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 18, 2016, 11:33am UTC](https://forum.mautic.org/t/javascript-import/4512/3 "2016-07-18T11:33:35Z")

</div>

Can you please provide more info? What Mautic version are you talking about? Steps to replicate the issue?

---

<div class="post-metadata">

**Author:** ![pedrolucasoliva](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pedrolucasoliva](https://forum.mautic.org/u/pedrolucasoliva)\
**Post date:** [July 25, 2016, 11:12pm UTC](https://forum.mautic.org/t/javascript-import/4512/4 "2016-07-25T23:12:19Z")

</div>

I’m sorry. I’m using 2.0 version.  
I don’t know if its common.  
When I paste this code at my landing page:  
"

"  
Mautic include Just the first one script and skip the anothers.

That is what i want:  
[http://consultoriabusiness.com.br/landingpages/operadordecaixa/](http://consultoriabusiness.com.br/landingpages/operadordecaixa/)

When I use Mautic’s landing page system, that is what I get:  
[http://mkt.consultoriabusiness.com.br/operador-de-caixa](http://mkt.consultoriabusiness.com.br/operador-de-caixa)

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 26, 2016, 6:41am UTC](https://forum.mautic.org/t/javascript-import/4512/5 "2016-07-26T06:41:31Z")

</div>

Ok, there is an issue with themes which has many external assets. It will be fixed in Mautic 2.1.0, in this PR particularly: [https://github.com/mautic/mautic/pull/2032](https://github.com/mautic/mautic/pull/2032)

---

<div class="post-metadata">

**Author:** ![klausv1304](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@klausv1304](https://forum.mautic.org/u/klausv1304)\
**Post date:** [July 26, 2016, 9:43am UTC](https://forum.mautic.org/t/javascript-import/4512/6 "2016-07-26T09:43:55Z")

</div>

Be careful with this #2032 stuff. I took a lot of time and corrected and replaced the files.  
Result is, that I connot open some of my exisiting landing pages, I cannot create new landing pages and replace the destroyed ones.  
My campaigns don`t send Emails because of the external cron job stuff.

To be honest: I think we are turning in circles. We fix one thing and get 2 new problems…

I wait for the next version and somebody who adapts the script to run cron jobs external.  
Otherwise I`ll stop spending my times with mautic. Then it is a nice playground but nothing to work with in a serious and predictable way

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 26, 2016, 10:00am UTC](https://forum.mautic.org/t/javascript-import/4512/7 "2016-07-26T10:00:37Z")

</div>

I’m quite sure the problem is in the way you tested #2032 and not in #2032 itself. Also, it’s not a good idea to test PRs in a production Mautic. If you’d like to help the project and made sure that the next version won’t have any bugs in it, testing the new PRs is the best way. Here is how to do it properly: [https://github.com/mautic/mautic#how-to-test-a-pull-request](https://github.com/mautic/mautic#how-to-test-a-pull-request)

Please, bare in mind that an open source project can be as good as the community around it. If everyone of its users will wait when someone fixes a bug, someone tests it afterwards and then it will be ready for you to use without any price or time investment, then be aware that this is thinking 99% of Mautic users as well.

It’d be amazing if you were thinking the “Don’t ask what Mautic can do for you but what you can do for Mautic” way. If you compare it with prices of other marketing automation systems and count the saved cost using Mautic, then invest 10% of this saved cost back to the testing of new PRs of Mautic, Mautic would be much more stable.

---

<div class="post-metadata">

**Author:** ![klausv1304](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@klausv1304](https://forum.mautic.org/u/klausv1304)\
**Post date:** [July 26, 2016, 12:52pm UTC](https://forum.mautic.org/t/javascript-import/4512/8 "2016-07-26T12:52:39Z")

</div>

OK, your answer fits exactly in my picture that I got here the last weeks.  
Did you ever think about the fact, that my time costs money, that all the delays cost money, and I`m still try to work with mautic and find a way to get my proplems solved. Is this no kind of interesst? I don`t want to get in trouble with you and end it at this point.  
I`ll wait for the next version and hope for a solution for the cron jobs…
