3

I read stylesheets of facebook and Google and i noticed that class names used in css styles are some random letters and numbers? can we convert all css classes names to some random letters after developing web page? how they did it? is there any tool for doing this?

3
  • You can use find and replace tools of some ide like Dreamviewer, Zend Studio. Commented Apr 9, 2014 at 3:09
  • did u mean we have to find every class one by one and replace them with some letters? This is too long procedure. Commented Apr 9, 2014 at 3:11
  • Yes, you could. If you wanted to. Note that Facebook isn't using random class names, though. They're not terribly human-readable, but they are clearly not random and appear to be part of whatever particular CSS framework Facebook has created--likely one to go along with their back end framework as well. Commented Apr 9, 2014 at 3:12

1 Answer 1

1

I believe the answer you're looking for is the same one given here:

Google uses something called the Google Web Toolkit (or simply GWT) to compile Java "applications" into their Javascript/HTML/CSS counterparts. GWT was used for GMail and Google Wave and my assumption is that it was also used for G+.

The GWT "compiler" (CS purists would never call GWT a compiler but the term fits) programatically names Javascript functions, CSS classes, HTML form IDs, etc. so they are almost never something legible.

Sign up to request clarification or add additional context in comments.

2 Comments

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
Thanks for the heads up torque. :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.