suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Avoid deeply nested control flow statements.
Open

                                    if (D !== undefined && D.custom === true) {
                                        G.style.visibility = "visible"
                                    } else {
                                        G.style.visibility = "hidden"
                                    }
Severity: Major
Found in performance/yslow.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        for (s = 0; s < y.components.length; s += 1) {
                                            if (typeof y.components[s] === "string") {
                                                v += "<li>" + y.components[s] + "</li>"
                                            } else {
                                                if (y.components[s].url !== undefined) {
    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 (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 (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 (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

                                                  if (!z.message) {
                                                      y.push("  ---")
                                                  }
              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 (q === "message") {
                                                          y = this.getElementByTagNameAndId(z, "div", "progtext2");
                                                          if (y) {
                                                              y.innerHTML = v
                                                          }
                  Severity: Major
                  Found in performance/yslow.js - About 45 mins to fix

                    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

                                                          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

                                                            if ("ysStatsButton" === r) {
                                                                q += this.yscontext.genStats(s);
                                                                this.addButtonView("ysStatsButton", q);
                                                                YSLOW.renderer.plotComponents(this.getButtonView("ysStatsButton"), this.yscontext)
                                                            } else {
                        Severity: Major
                        Found in performance/yslow.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if (w === undefined) {
                                                                  w = s;
                                                                  x = r;
                                                                  YSLOW.view.removeClassName(s, "yui-hidden");
                                                                  r.className += " first";
                          Severity: Major
                          Found in performance/yslow.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                if (v.hasOwnProperty(F) && v[F]) {
                                                                    E = v[F];
                                                                    break
                                                                }
                            Severity: Major
                            Found in performance/yslow.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                  if (t > -1) {
                                                                      q = r.slice(0, t) + q
                                                                  } else {
                                                                      q = r + q
                                                                  }
                              Severity: Major
                              Found in performance/yslow.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    for (G = 0, N = t.length; G < N; G += 1) {
                                                                        F = new RegExp(t[G]);
                                                                        if (F.test(A)) {
                                                                            L.push(O);
                                                                            w = 1;
                                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 (v.is_beacon) {
                                                                            z += " &#8224;"
                                                                        }
                                    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 (typeof y.score === "number") {
                                                                                    B += y.weight;
                                                                                    if (!YSLOW.util.Preference.getPref("allowNegativeScore", false)) {
                                                                                        if (y.score < 0) {
                                                                                            y.score = 0
                                        Severity: Major
                                        Found in performance/yslow.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language