• Resolved Lord_Mord

    (@lord_mord)


    Hello. I’m using wp-less to allow the owner of the blog, Im currently working on, to change background-colors and some other stuff monthly.

    In my functions.php, I have this:

    if ( ! is_admin() )
    wp_enqueue_style( ‘less’, get_template_directory_uri() . ‘/css/style.less’ );

    My question is: Is it getting compiled every time a user loads the page, or just if the less file has changed? How does it affect page load time? Can I improve this somehow?

    https://www.ads-software.com/plugins/wp-less/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Lord_Mord

    (@lord_mord)

    Stop. This is not the plugin I’m working with. Mine looks different, but has the same name.

    Plugin Author oncletom

    (@oncletom)

    Yes, there is a dupe name on Github…

    In any case, it will obviously take some time to process the stylesheet the first time. Nothing a human could notice though.

    On any other calls, the plugin will load a compiled CSS file so it won’t reprocess it – unless it has changed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does compiling less with wp-less affect load times?’ is closed to new replies.