When wiring a circuit with a capacitor why does the electricity go to the capacitor first instead of bypassing it?
The circuit above kind of shows what I mean, how come the electrons don't flow past the capacitor and too the led or is that a wrong assumption and electrons do flow past the capacitor and the capacitor just takes some of the energy?


When the capacitor is discharged, the voltage across it is 0 V. If there is some resistive load in parallel, then no current will flow through the resistive load because the voltage across it is 0 V.

Only after current flows through the capacitor will its voltage increase. As its voltage increases, some of the current will start to be diverted through the resistive load.

Once the capacitor voltage increases to near the battery's emf, the battery won't be able to increase the voltage across the capacitor any more, and current will stop flowing through the capacitor. At this point just about all of the battery's output current will flow through the load.