Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7187799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:55:37+00:00 2026-05-28T18:55:37+00:00

When I heard about LESS, I originally thought that they’re usually pre-processed into css

  • 0

When I heard about LESS, I originally thought that they’re usually pre-processed into css files, so browsers just encounter CSS files, not LESS files.

However, using LESS plugin for Play Framework, I just saw that my Chrome browser actually reads and interprets LESS files. LESS is claimed to be supported in all major browsers. So, do modern websites just serve LESS files, or do they pre-compile them into CSS? How does the LESS plugin work in Play Framework? Does it inject a Javascript snippet that interprets them client side?

What’s actually happening here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:55:38+00:00Added an answer on May 28, 2026 at 6:55 pm

    If you’re using the Lunatech LESS plugin for Play! 1, it looks like it actually compiles the less files on the fly using Asual LESS and then serves it statically. An excerpt:

    /**
     * Get the CSS for this less file either from the cache, or compile it.
     */
    public String get(File lessFile) {
        String cacheKey = "less_" + lessFile.getPath() + lastModifiedRecursive(lessFile);
        String css = Cache.get(cacheKey, String.class);
        if(css == null) {
            css = compile(lessFile);
            Cache.set(cacheKey, css);
        }
        return css;
    }
    
    protected String compile(File lessFile) {
        try {
            return lessEngine.compile(lessFile);
        } catch (LessException e) {
            return handleException(lessFile, e);
        }
    }
    

    Where lessEngine is a com.asual.lesscss.LessEngine instance.

    Like others have pointed out, the more common ways of using LESS is to compile them yourself before serving content, or using the lesscss JavaScript plug-in to have the client compile them at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of the arguments I've heard about blueprint css is that it lets you
When I first heard about StackOverflow, and heard that it was being built in
I heard about the chicken and the egg and bootstrapping. I have a few
I heard about the new entity framework for .net, and decided to modify my
I heard about B-Method which is invented in France. Is it an alternative to
I've recently heard about the CaptureStackBackTrace function by reading this post . I cannot
I've only heard about what UIProgressHUD class do, but i cannot find the implementation
I've heard about how base classes and method overriding can be combined to eliminate
I've recently heard about Qt and read about how fun it is to develop
In C I know about the recursive function but I heard about the re-entrant

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.