Title: Inline SVG functionality triggers with delay
Last modified: September 22, 2023

---

# Inline SVG functionality triggers with delay

 *  Resolved [mkberry](https://wordpress.org/support/users/mkberry/)
 * (@mkberry)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/inline-svg-functionality-triggers-with-delay/)
 * Hi,
 * Thanks for your plugin.
 * I was using it before in my other project with older version (2.4.2). I used 
   inline feature to manipulate SVG in my Javascript code. It worked completly fine.
   My scripts are in bottom of the page (svg-support js is in Head) triggered on
   jQuery ready function. On old version I could select all “paths” by simple jQuery
   selector (let $path = $(‘.svg-image svg path’)) right after page loaded.
 * But on new version (2.5.5) there is problem with that. On “dom ready” I do not
   have any paths (on same file! same code), because inline file is not ready.
 * I came up with 2 not perfect solutions:
    1. Downgrade plugin – works completly fine, but it would be better to use newest
       version.
    2. Leave new version and set Timeout (1000ms for example) on my function – also
       not perfect.
 * So I was wondering, what changed and to how fix it proper way? 🙂
 * My theme is Divi if this has something to do with this.
 * ps. Also i tried disabling lazy load, without any success, I tried both by plugin
   and some custom code:
 *     ```wp-block-code
       add_filter( 'wp_lazy_loading_enabled', '__return_false' );
       ```
   
    -  This topic was modified 2 years, 8 months ago by [mkberry](https://wordpress.org/support/users/mkberry/).

The topic ‘Inline SVG functionality triggers with delay’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [mkberry](https://wordpress.org/support/users/mkberry/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/inline-svg-functionality-triggers-with-delay/)
 * Status: resolved