Why do facebook and google pages have strange ids and classes?
问题 Many a times I have inspected element on facebook and google pages but their page always have strange values as ids and classes in their html elements. Have a look at Attributes of an element on facebook page Attributes of element on google plus page Q1. Is this result of some kind of obfuscation algorithm ? It would be a nightmare to code with such attributes if devs actually use them which I don't think so. Q2. Why are they doing it ? 回答1: it's likely that they generate new classes and ids