suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Avoid deeply nested control flow statements.
Open

                                    if (v.expand === 0) {
                                        x.innerHTML = "Collapse All"
                                    }
Severity: Major
Found in performance/yslow.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if (s.checked) {
                                            x.rules[s.value] = {}
                                        }
    Severity: Major
    Found in performance/yslow.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if (C === A) {
                                              t += (v ? " sortDesc" : " sortAsc")
                                          }
      Severity: Major
      Found in performance/yslow.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                            for (F = 0; F < x.components.length; F += 1) {
                                                J = x.components[F];
                                                if (typeof J === "string") {
                                                    C += "<li>" + J + "</li>"
                                                } else {
        Severity: Major
        Found in performance/yslow.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if (!this.doc_comp && s) {
                                                  this.doc_comp = q
                                              }
          Severity: Major
          Found in performance/yslow.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                                if (r >= 60) {
                                                    q = "D"
                                                } else {
                                                    if (r >= 50) {
                                                        q = "E"
            Severity: Major
            Found in performance/yslow.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                  for (N in K) {
                                                      if (K.hasOwnProperty(N)) {
                                                          B[q.formatHeaderName(N)] = K[N]
                                                      }
                                                  }
              Severity: Major
              Found in performance/yslow.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                    for (s = 0; s < r; s += 1) {
                                                        y.push('    - "' + A(x[s]) + '"')
                                                    }
                Severity: Major
                Found in performance/yslow.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if (J[E].className === "dialog-text") {
                                                          z = J[E]
                                                      } else {
                                                          if (J[E].className === "dialog-more-text") {
                                                              y = J[E]
                  Severity: Major
                  Found in performance/yslow.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                        if (B !== z.type) {
                                                            t += '<tr class="type-summary ' + (x ? "expand" : "collapse") + '"><td><a href="javascript:document.ysview.expandCollapseComponentType(document, \'' + B + '\')"><b class="expcol"><b class="exp exph"></b><b class="exp expv"></b><b class="col"></b></b><span class="rowTitle type-' + B + '">' + B + "&nbsp;(" + q + ')</span></a></td><td class="size">' + YSLOW.util.kbSize(s) + "</td><td><!-- GZIP --></td><td></td><td></td><td><!-- HEADERS --></td><td><!-- URL --></td><td><!-- EXPIRES --></td><td><!-- RESPTIME --></td><td><!-- ETAG --></td><td><!-- ACTION--></td></tr>";
                                                            t += w;
                                                            w = "";
                                                            q = 0;
                    Severity: Major
                    Found in performance/yslow.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                          if (u !== -1) {
                                                              z = F.className.substring(u + 8);
                                                              u = z.indexOf(" ");
                                                              if (u !== -1) {
                                                                  z = z.substring(0, u)
                      Severity: Major
                      Found in performance/yslow.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                            if (s) {
                                                                x += 1
                                                            } else {
                                                                r += 1
                                                            }
                        Severity: Major
                        Found in performance/yslow.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              for (L = 0, y = H.length; L < y; L += 1) {
                                                                  T = H[L];
                                                                  if (typeof T === "string") {
                                                                      u = T
                                                                  } else {
                          Severity: Major
                          Found in performance/yslow.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                if (A === "hackFilter") {
                                                                    z += D[A];
                                                                    x += D[A]
                                                                } else {
                                                                    q += D[A];
                            Severity: Major
                            Found in performance/yslow.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                  if (A === "hackFilter") {
                                                                      z += D[A];
                                                                      x += D[A]
                                                                  } else {
                                                                      q += D[A];
                              Severity: Major
                              Found in performance/yslow.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if (t === "size") {
                                                                        z += YSLOW.util.kbSize(v.size)
                                                                    } else {
                                                                        if (t === "url") {
                                                                            if (v.status >= 400 && v.status < 500) {
                                Severity: Major
                                Found in performance/yslow.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                  if (unaryArgs.hasOwnProperty(argsAlias[arg])) {
                                                      unaryArgs[argsAlias[arg]] = true
                                                  }
                                  Severity: Major
                                  Found in performance/yslow.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        if (D.weights !== undefined && D.weights[B] !== undefined) {
                                                                            t += '<input type="hidden" name="weight-' + B + '" value="' + D.weights[B] + '">'
                                                                        }
                                    Severity: Major
                                    Found in performance/yslow.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                              if (typeof y.score !== "number") {
                                                                                  G = parseInt(y.score, 10);
                                                                                  if (!isNaN(G)) {
                                                                                      y.score = G
                                                                                  }
                                      Severity: Major
                                      Found in performance/yslow.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                            if (/javascript/.test(q)) {
                                                                                r = "js"
                                                                            } else {
                                                                                if (/flash/.test(q)) {
                                                                                    r = "flash"
                                        Severity: Major
                                        Found in performance/yslow.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language