Duplicate Scripts Loaded When Using Renderpartial

Hi guys, im using the xupload extension, which publishes a list of JS assets. I using it in a modal so Im calling Renderpartial with processOutput set to TRUE.

The first time i call the modal with the xupload widget, all the necessary JS and CSS for Xupload is published and everything works correctly. However, the second time I call this modal, all the JS for xupload is called again. Then xupload breaks on the second time. I believe that this is due to the duplicated JS being initialized.

Can anyone point me in the right direction for solving this? This seems to be a problem for all AJAX renderpartial that requires assets to be published.



i had the same problem before.

I’m not sure but try