(a) A judgment in a proceeding under Section
601 or
602 may be appealed from, by the minor, in the same manner as any final judgment, and any subsequent order may be appealed from, by the minor, as from an order after judgment. Pending appeal of the order or judgment, the granting or refusal to order release shall rest in the discretion of the juvenile court. The appeal shall have precedence over all other cases in the court to which the appeal is taken.
A ruling on a motion to suppress pursuant to Section 700.1 shall be reviewed on appeal even if the judgment is predicated upon an admission of the allegations of the petition.
A judgment or subsequent order entered by a referee shall become appealable whenever proceedings pursuant to Section 252, 253, or 254 have become completed or, if proceedings pursuant to Section 252, 253, or 254 are not initiated, when the time for initiating the proceedings has expired.