optimization - optimizing CSS selectors. Is `*+p` less costy than `p+*` -


What do I know about CSS processing's browser algorithm, the selector is * + p less Perfomance effect compared to p + * , right?

Then, p + * is scanned through all the elements on the page in the browser, and those who follow p The same rules apply to * + p firstly it appears for p , but before finding some element before p Prevents the search immediately after, thus reducing "search iterations"? Or * still scans everything.

In addition, which tools can show CSS loading time and other 'heavyweight' information. Only those people who are searching for unused or more rules and compress CSS to get lesser size.

In the context - I have to apply top-margin to any element in the pursuit of p except p + p ), dynamically generated content There is a lot of questions that are being read that there are too many universal selectors in older browsers.

Margin down to all P elements, will not it result? After this, you can add a rule to p + p with the negative top margin to oppose the effect, eg:

  p {margin-bottom : 10px; } P + P {margin-top: -10px; }    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -