Title: Init callback?
Last modified: June 21, 2019

---

# Init callback?

 *  [fluxio](https://wordpress.org/support/users/fluxio/)
 * (@fluxio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/init-callback/)
 * Using style-svg to replace the original tag with the svg
    Are there any callbacks
   for when the job has been done?
 * Trying to animate with vivus or lazy line painter but querying the element by
   id even after document ready just returns null.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [rodrigot](https://wordpress.org/support/users/rodrigot/)
 * (@rodrigot)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/init-callback/#post-11704586)
 * $(document).on(‘svg.loaded’,function(){
    console.log(‘here’); })
 *  [garakatsamol](https://wordpress.org/support/users/garakatsamol/)
 * (@garakatsamol)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/init-callback/#post-11726962)
 * Hi. thanks for your great work
    I have the same issue. I try the suggestion $(
   document).on(‘svg.loaded’,function(){ console.log(‘here’); }) but that never 
   fires.. Any suggestions? THanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Init callback?’ is closed to new replies.

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=3554681)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [garakatsamol](https://wordpress.org/support/users/garakatsamol/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/init-callback/#post-11726962)
 * Status: not a support question