This study aims to present a novel deep learning algorithm for a sliding shock advisory decision during cardiopulmonary resuscitation (CPR) and its performance evaluation as a function of the cumulative hands-off time. We retrospectively used 13,570 CPR episodes from out-of-hospital cardiac arrest (OHCA) interventions reviewed in a period of interest from 30 s before to 10 s after regular analysis of automated external defibrillators (AEDs). Three convolutional neural networks (CNNs) with raw ECG input (duration of 5, 10, and 15 s) were applied for the shock advisory decision during CPR in 26 sequential analyses shifted by 1 s. The start and stop of chest compressions (CC) can occur at arbitrary times in sequential slides; therefore, the sliding hands-off time (sHOT) quantifies the cumulative CC-free portion of the analyzed ECG. An independent test with CPR episodes in 393 ventricular fibrillations (VF), 177 normal sinus rhythms (NSR), 1848 other non-shockable rhythms (ONR), and 3979 asystoles (ASYS) showed a substantial improvement of VF sensitivity when increasing the analysis duration from 5 s to 10 s. Specificity was not dependent on the ECG analysis duration. The 10 s CNN model presented the best performance: 92–94.4% (VF), 92.2–94% (ASYS), 96–97% (ONR), and 98.2–99.5% (NSR) for sliding decision times during CPR; 98–99% (VF), 98.2–99.8% (ASYS), 98.8–99.1 (ONR), and 100% (NSR) for sliding decision times after end of CPR. We identified the importance of sHOT as a reliable predictor of performance, accounting for the minimal sHOT interval of 2–3 s that provides a reliable rhythm detection satisfying the American Heart Association (AHA) standards for AED rhythm analysis. The presented technology for sliding shock advisory decision during CPR achieved substantial performance improvement in short hands-off periods (>2 s), such as insufflations or pre-shock pauses. The performance was competitive despite 1–2.8% point lower ASYS detection during CPR than the standard requirement (95%) for non-noisy ECG signals. The presented deep learning strategy is a basis for improved CPR practices involving both continuous CC and CC with insufflations, associated with minimal CC interruptions for reconfirmation of non-shockable rhythms (minimum hands-off time) and early treatment of VF (minimal pre-shock pauses).