the mystery of lesscss [closed] - html

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Hi I am trying to work out if it is worth using LESSCSS.
After much research and playing I see that it is not supported by older browsers and needs to be compiled before it is used. Is it even worth using? I know that it makes css easier write, but is it even worth it if what you are writing is not what will be on live when it is used?
Thanks

In fact, there are two ways of using LESSCSS :
Client-side : the .less file is sent to client and is executed by the browser, uses javascript and requires recent browser.
Server-side : the .less files are compiled to plain .css files, which are sent to the client.
The second one requires more configuration of the server, but requires nothing more than CSS compatibility from the client.
You can find more details on the LESSCSS main page, at the bottom of "usage" section : here.

Related

How to make an executable game accessible for users to play online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
There's a little .exe file which contains a game I want to make available on a website (pure HTML), but I don't know how to do it.
What I want to achieve is: when clicked, users shouldn't have to install it but be able to play it on the site.
You can't use or run executables with html. Html and js can not modify directly contents in your PC and use system functions, they can do what they are allowed to by the browser, that communicates with the system and restricts some functioning.
That is why they can be considered "virtual" - they run on the browser that take care of their parsing and viewing.
For the same way you can't either embed it, since embedding requires the ability to run it.

AutoPrefixer vs Prefix-free vs Prefixr [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've been looking online for some Postprocessors for dealing with Vendor Prefixes and these are the libraries I came across.
Autoprefixer
Prefixr, which will do it for you.
Prefix-free, which will also do it for you but client-side.
However what differentiates one of these postprocessors from the others and visa versa?
Well, autoprefixer is meant to be integrated into your asset pipeline. So, for example, if you are using Sass or LESS, you can attach autoprefixer to it. Then it's automatic. While using it, I never even have to think about prefixes.
If you're editing the final css file directly, autoprefixer may seem like more of a hassle, I suppose. But in that case, you might want to check out the benefits of Sass/LESS.
Prefix-free runs on the client side - so that will be easier for a static css file, but it may impact page load time (although, the css download itself may be smaller.)
I think Prefixr is a UI? I'm not as familiar, but in that case it's an app that does it for you. The others are "set it and forget it" solutions to the problem.

How do people go about developing gigantic .css file? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
How do people go about developing gigantic .css file? Do they use some tools or they really code it line by line?
For example, here is one .css file that has 20K lines.
http://dkmstj1aljhw5.cloudfront.net/styles/dc3de668.app.css
The file you posted link to is probably generated from many smaller css files, and served as one big file, to reduce number of requests to server. Newer web frameworks usually provide some kind of a tool for managing assets.
Okay this is quite a broad question, but please see my answer below.
First of all typically very large CSS files can be part of a framework such as bootstrap for example.
On the other hand there are some CSS files that are long just by their nature. I have written a CSS file that has been 24000 lines before. This consisted of 8 separate files, all minimised into a single cached CSS file.
I hope this helps!

Is it wrong to use files without extensions on a page? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Why is it wrong to remove file extensions from files and html code, like this:
<link href="cs" rel="stylesheet">
<script src="j"></script>
<img src="1">
Why does nobody do that? Will this cause any browser compatibility issues or penalties from search engines?
Well, for one, you'd better make sure all your filenames are unique, as your code can't tell the difference between main.css and main.js...
The src and href attributes (among with virtually everything else on the web) uses URLs, not "files". URLs don't have file extensions. It's just a convention that .XXX is used in a URL, but it has no inherent meaning. As such, using meaningless one-letter URLs works just fine, yes. But there's no inherent advantage to it either, it just makes your source code and URLs less readable, even for yourself.

CSS optimisation recommendations [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm working on a project of mine and it is my first time doing PSD to HTML/CSS.
I put my work so far online, if I could get advices on what I'm doing wrong (I don't have sprites yet but I will), that would be great.
The link is there REDACTED
you need to do
▸
Leverage browser caching
[Score: 8/100]
▸Optimize images
[Score: 22/100]
▸Enable compression
also there is a
ReferenceError: jQuery is not defined
})(jQuery);
also this is an issue on resizing the browser
Note: dont use !important unless you really need to but you have uses important too much
also its seems like you are not resting browser default css ...try http://meyerweb.com/eric/tools/css/reset/