Skip to main content
Participating Frequently
July 9, 2020
Question

Combine external JS script in published HTML5?

  • July 9, 2020
  • 1 reply
  • 357 views

I have included an external script through the include feature in the actions panel. Many HTML5 files use this script, and it makes easier for me to make change in that one script to reflect changes in all. 

 

But when the file is published, the js file is included in the libs directory, without which the published HTML file doesn't work. I have selected combine js/html files and deselected 'export createjs assets' in publish settings, but that didn't make any difference.

 

I need to upload these files to Wordpress, and it doesn't allow JS files in its media. 

 

Please help.

 

 

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    July 10, 2020

    then you'll need to manually add your external script to the combined html/js that animate publishes

    ruturaj20Author
    Participating Frequently
    July 10, 2020

    How do I do that? 

     

    What currently happens is that the libs folder with the external script sits in the same location as the HTML files. That works.

     

    But I need to upload the HTML files to Wordpress. Wordpress doesn't allow upload of external JS files.