Hard starting unless warmed up and intermittant check engine light. on 1997 Ford Ranger

Very hard to start and keep running until warmed up. Then bucks and dies under load until driven a mile or so then check engine light comes on under load and goes off under low or no load condition.

Asked by for the 1997 Ford Ranger
Definitely get the Check Light Code. There is something wrong and that light will help.