# Mautic 3: plugin template only one asset loading

**URL:** <https://forum.mautic.org/t/mautic-3-plugin-template-only-one-asset-loading/15857>\
**Category:** Development\
**Created:** [August 29, 2020, 12:27am UTC](https://forum.mautic.org/t/mautic-3-plugin-template-only-one-asset-loading/15857 "2020-08-29T00:27:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phjou](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/phjou/32/1111_2.png) [@phjou](https://forum.mautic.org/u/phjou)\
**Post date:** [August 29, 2020, 12:27am UTC](https://forum.mautic.org/t/mautic-3-plugin-template-only-one-asset-loading/15857/1 "2020-08-29T00:27:01Z")

</div>

Hello I have a really weird issue with my plugin.

I am creating a new plugin to add new slot types and I am using Mautic 3.

Depending where I include my assets, Mautic is doing different stuff.

For example, only the first included asset will be loaded. If I put the “includeStylesheet” first, I will have the styles loading but not the javascript, but if I put “includeScript” first, only the javascript will be loaded.

Moreover if I put them both at the top of the template, then nothing is working and it is printing the HTML on the Slot type icon.

There is my current template:

```
<div class="img-side">
<img src="<?php echo $view['assets']->getUrl('themes/blank.png', null, null, true); ?>" alt="An image" />
<span><?php echo $view['translator']->trans('mautic.core.slot.label.text.insert'); ?></span>
</div>
<?php
echo $view['assets']->includeScript('plugins/MauticMellengerSlotTypesBundle/Assets/js/builder.js');
echo $view['assets']->includeStylesheet('plugins/MauticMellengerSlotTypesBundle/Assets/css/styles.css');
?>
<div style="clear:both"></div>

```

I appreciate if anyone has information how Mautic is handling templates because those behaviors don’t make any sense to me. I followed the documentation which is basically doing the same as me I think:  
[https://developer.mautic.org/#asset-helper](https://developer.mautic.org/#asset-helper)

Thank you to anybody reading this.
