The retirement of the F-16s, F-15s and A10s were accompanied by a slow roll-out of the F-35 program. Allied defections from the F-35 program, accompanied by a 40% cut in US numbers have slowed the program significantly with significant cost increases.
The F-35 program is not doing bad because people are not ordering it in numbers. It is doing bad because it is significantly defective.