Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » How fix DOM usage in loop by jquery ?

  • Resolved richardmcoach


    Hey ! ๐Ÿ™‚

    I use “” for look for my problems on my website.

    And it’s telling me a problem about using DOM in jQuery loop. :/

    In this :
    for(var d=0;d<data.length;d++){var selection=data[d];var $selection=this.selectionContainer();var formatted=this.display(selection,$selection);$selection.append(formatted);$selection.prop('title',sele...
    (haven’t all the code for this)

    And this :
    for(var t=0;t<tags.length;t++){var tag=tags[t];var item=this._normalizeItem(tag);var $option=this.option(item);this.$element.append($option)}

    How can I fix that ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kasia – WPMU DEV Support


    Hello @richardmcoach ,

    Could you provide more information about your request? Does it only shows on pages with Forminator forms?

    kind regards,


    Yep, that only happen when Forminator is able ; if I disable it, that don’t happen.

    I haven’t more information than I gave you. ๐Ÿ™
    I’m not sure that have an impact on my website.

    Plugin Support Patrick – WPMU DEV Support


    Hi @richardmcoach

    Thank you for the information.

    Looping on the fields is a normal approach, it shouldn’t have a big impact in terms of performance.

    If you use an optmization plugin like our Hummingbird, you can move the scripts to load after page or footer to reduce the load time impact.

    But I’m also sending this ticket to our developers and see if these JavaScript codes can be improved on a future release.

    Best Regards
    Patrick Freitas

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.