• Resolved vallered

    (@vallered)


    Near perfect plugin for me. Just one thing: Is there a snippet available to make its assets only load on pages where the respective Gutenberg block renders a form? Just tested on a staging to link to a separate contact page from the footer instead just using a popup, but your plugin assets are still loaded globally. For me it is a performance issue, as I am trying to get rid of JQuery on most pages of my site

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark Westguard

    (@westguard)

    @vallered WS Form assets are only enqueued if the form exists on the respective page. Therefore it is likely that your pop-up is pre-loading the HTML content it shows when it opens when the pop-up is initialized. Any pages that do not have a form on them will not have assets associated with WS Form enqueued.

    https://wsform.com/knowledgebase/performance/

    Thanks!

    Thread Starter vallered

    (@vallered)

    Sorry, you were right. But it has not been a popup that preloads the asset (as on my testing environment I already replaced the popup by a page and a link to it), but by a content block of my theme, that includes the code. Even if not used, they are loading their assets globally, that’s something I had not expected

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘load plugin assets only on pages where it is used’ is closed to new replies.