• Resolved iqueue

    (@iqueue)


    I’m reviewing performance and structure of my pages. I have several snippets in use. I want to know if there’s an option to have <script> and <style> tags output as a single combined element.

    Currently, when multiple snippets are in use, they each get their own <style> or <script> tag in the resulting html.

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @iqueue,

    Unfortunately, there’s no direct way of doing that in the current version – the focus when loading scripts and styles with WPCode is on the locations where they are loaded so they are not combined in these scenarios but I know some performance/caching plugins handle combining such inline scripts automatically so you might look into that as an option.

    I have also made a note to check what options we have to combine multiple styles & scripts used in the same location for a future release.

Viewing 1 replies (of 1 total)
  • The topic ‘Combine and tags into one?’ is closed to new replies.