I've seen posts where residuals were plotted against fitted values $\hat{y}$ and posts where they were plotted against the independent variable (assume simple linear regression for simplicity).
When is one preferred over the other? What information is present in each that might not be present in the other? In terms of assessing homoscedasticity, it seems that either would work?
Follow-up question. If you plot residuals vs independent variable and identify no signs of heterscedasticity. Does this guarantee that a plot of residuals vs fitted values will show the same behavior?