4 years ago
2
Topic

Hi

with a 'before render' CODE field  I call a JS file which works well.

I can't just use a JS code file because my script has several <script src="/xxx"></script> that can't be understood with the JS code field. I also prefer calling a separate file I can edit in my editor.

However when I look at the HTML page source code I see I need to put the script at the bottom of the page which is not the case.

Whichever seblod position (with seb_one seblod template) my embeded JS code is not moved at the bottom.

is there a way to force the code to be put at the bottom please?

thanks

Cyril

Get a VIP membership
134 Posts
root
4 years ago
0
Level 1

Hi Cyril,

I would try with a module, edited with CodeMirror editor. With a small javascript snippet, by using .appendTo(document.body)

I hope that helps you.

Best regards

4 years ago
0
Level 1

Hi

this is actuallty what we did : using a module we put on the template debug position !

thanks

cyril

Get a VIP membership