• Resolved mkberry

    (@mkberry)


    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:

    
    add_filter( 'wp_lazy_loading_enabled', '__return_false' );
    • This topic was modified 1 year, 6 months ago by mkberry.
  • The topic ‘Inline SVG functionality triggers with delay’ is closed to new replies.