Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User voodoov's Avatar
    Join Date
    Mar 2012
    Posts
    34
    Answers
    1
    Vote Rating
    0
    voodoov is on a distinguished road

      0  

    Default Unanswered: Javascript Style vs. CSS Style (Best Practice)

    Unanswered: Javascript Style vs. CSS Style (Best Practice)


    Hi,

    In large applications, is it better to write custom css in JS file or CSS file?
    Which one has better performance?

    Javascript Style:
    Code:
    {
      xtype: 'label',
      html: 'Some Text',
      style: {
        fontWeight: 'bold',
        display: 'block',
        float: 'left',
        margin: '2'
      }
    }
    or

    CSS Style:
    Code:
    {
       xtype: 'label',
       html: 'Some Text',
       cls: 'myStyle'
    }
    -------------------
    .myStyle {
      font-weight: bold;
      display: block;
      float: left;
      margin: 2px;
     }
    Thank you in advance.

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,477
    Answers
    523
    Vote Rating
    280
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    I doubt there's a measurable performance difference. Where possible I would favour the separate CSS file approach.

Thread Participants: 1