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?
-
You can use find and replace tools of some ide like Dreamviewer, Zend Studio.Avi– Avi2014-04-09 03:09:51 +00:00Commented 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.Manish Mahajan– Manish Mahajan2014-04-09 03:11:23 +00:00Commented 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.DA.– DA.2014-04-09 03:12:45 +00:00Commented Apr 9, 2014 at 3:12
Add a comment
|
1 Answer
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.
2 Comments
torquestomp
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.
MarioD
Thanks for the heads up torque. :D