jquery: speed difference between .css vs append to head?

后端 未结 3 1648
再見小時候
再見小時候 2021-01-26 22:18

We have some kludgy workarounds for an internal app and I was wondering which jQuery/css technique is considered faster / more efficient ...etc.

Technique A

3条回答
  •  遇见更好的自我
    2021-01-26 22:59

    I would add non-semantic classes via jQ. Such as: 'float-right', 'margin-right'. This is a lot cleaner to maintain imo.

提交回复
热议问题