Vaccines are definitely a factor.
When Generation Rescue, who always advocated the view that vaccinations are the cause of autism,
commissioned a survey, they were shocked to discover that their survey found
autism was more prevalent in the unvaccinated.
The survey discovered that 3% of all vaccinated children had an autism spectrum diagnosis, whereas for the unvaccinated children, the prevalence was 3.7%. (Sadly, because this result contradicted the political aims of Generation Rescue, they "spun" the result, and manipulated the data to make it look as if neurological conditions were more prevalent in the vaccinated, but this was just "spin".)
This survey result found by Generation Rescue makes sense if you subscribe to the theory that infectious pathogens may underlie many mental health conditions: because if you are vaccinated, you are more protected from such pathogens, so this may lower your chances of developing autism.
That is not to say that the anecdotal observations made by mothers that their child developed autism just hours after a vaccination are wrong. Remember that some vaccines contain live weakened (attenuated) versions of the pathogens they are trying to protect you from, so it is conceivable that these live attenuated versions may in some cases also precipitate autism. Or the immune boosting adjuvants incorporated into vaccines may play a role. But on average, the Generation Rescue survey indicates that vaccination is
protective against autism (although the survey did not quite reach statistical significance).
I like the theory that some kind of predisposition towards autism arises from problems during pregnancy, as this thread discusses. Then once the stage is set for autism due to events taking place during gestation, any significant activation of the immune system in early life may trigger this latent autism.
It is known that if a mother catches influenza virus during the first trimester of pregnancy, this increases the risk that their child will develop schizophrenia later in life by 7 times (ref:
1). A similar thing may occur in autism.
So perhaps closer attention should be focused on what environmental toxins or infectious factors may be afflicting mothers
during pregnancy which might later predispose the child to developing autism.