Reputation: 5308
Will it make any performance degradation if I use lot absolute and fixed positioning in my HTML app?
Any HTML experts?
Upvotes: 0
Views: 197
Reputation: 142
No it wont. Just keep DOM as simple as possible without making it too deep. And use CSS selectors with maximum level of 3 qualifiers. The lesser the better.
Upvotes: 0
Reputation: 1693
No, it won't! :) Setting position variables will not affect performance as it not not loading anything externally, just telling where the object must be placed. In some cases, it is a necessity to be used.
Upvotes: 2
Reputation: 3558
Simple answer, no.
More complex answer, no, at least not measurably slower. The page will still be rendering the same amount of objects whether it decides where to place them or you explicity tell it where to place them.
Upvotes: 3