A study of cuprate superconductors shows that charge density fluctuations can uncover the relevance of electron-phonon coupling in these materials. The work addresses a question open for decades: the role phonons play in the mechanism of high critical-temperature superconductivity, traditionally attributed to purely electronic interactions.