• Resolved Gal Baras

    (@galbaras)


    Since the plugin’s inline CSS is generated from settings, the easiest way to add it to the page is inline using wp_add_inline_style(), but that’s not the best way.

    A better way would be to save the CSS to a file whenever the settings change and enqueue that file using wp_enqueue_style(). This allows for minification, file combination and other good things that speed up page loading.

    In fact, it will also speed up page generation, because inlineCss(), or the new equivalent, will not run on every page load, only on settings save.

    Can this please be changed by the authors?

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enqueuing styles as a file’ is closed to new replies.