Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 13999

Plugin's scripts load before widget

$
0
0

@eramirez wrote:

Hi, I am developing a new plugin. When I create jQuery events to bind them with html elements I get an error, it is because the script loads before my widget gets rendered. How can I solve this problem?

I already made a setInterval and stopped it when some element of my widget gets rendered, and all the functionality works great; the problem is that when I click again (on my widget's menu option), the widget reloads but the script stops working.

There must be a piwik way to solve this, but I can't find the solution.

Please, help.

Thank you very much.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 13999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>