In 1907, two years after proposing the special theory of relativity, Einstein was preparing a review of special relativity when he suddenly wondered how Newtonian gravitation would have to be modified to fit in with special relativity. At this point there occurred to Einstein, described by him as the happiest thought of my life , namely that an observer who is falling from the roof of a house experiences no gravitational field. He proposed the Equivalence Principle as a consequence:-
... we shall therefore assume the complete physical equivalence of a gravitational field and the corresponding acceleration of the reference frame. This assumption extends the principle of relativity to the case of uniformly accelerated motion of the reference frame.
After the major step of the equivalence principle in 1907, Einstein published nothing further on gravitation until 1911. Then he realised that the bending of light in a gravitational field, which he knew in 1907 was a consequence of the equivalence principle, could be checked with astronomical observations. He had only thought in 1907 in terms of terrestrial observations where there seemed little chance of experimental verification. Also discussed at this time is the gravitational redshift, light leaving a massive body will be shifted towards the red by the energy loss of escaping the gravitational field.