The thing to watch out for in pre-loading 401(k) contributions is that you have to manage to the situation where you are eligible for a corporate match of some percentage of your 401(k) contributions but miss out because you've already hit the contribution maximum.
Example: Company has a 100% match of the first 10% of contributions. Say that your max is $18.5k and you earn $10k a month. If you contribute your full pay in January and 85% of your pay in February (in order to hit the contribution maximum ASAP), you'd earn 10% x $10k=$1,000 in company match in January and 10% x $10k = $1,000 in company match in February for a total of $2,000 (There wouldn't be any more contributions that year, so that would be your total for the year). If you contribute $18.5k x 1/12 in each of January-> December ($1,540 or 15.4%, so 10% or greater, giving you the full company match each month), you'd earn 10% x $120k = $12k in company match.
Note that some but by far not all companies have policies that retroactively review accounts for this situation, and add the difference. If you have the opportunity for a corporate match, it's very much worthwhile getting the lowdown on how your company handles this situation before deciding to frontload your contributions if there's a chance you might stay in the job.
I knew that I was leaving my job after two months in a job that paid less than 12k/month (I am over 50 so could contribute up to 24.5k), and didn't know whether I would have more earned income later this year, so I had set my 401(k) withholding at 95%. The way it wound up working is that they took out SSI and moved the rest to my 401(k). Subsequent to my setting up my own withholding, they changed the rules to cap withholding at 80% but I think that was to make things easier for the payroll folks to deal with SSI and other withholding rather than an IRS requirement.