Investors' love affair with cloud software companies is waning at the worst possible time for Box Inc.

The online-storage startup is delaying its plans for an initial public offering after a sudden weakening in demand for technology stocks. Box's March 24 IPO filing made it eligible to list shares as early as April, but people close to the company said the offering may not happen until June, and no timing has been set.

A...