Something else lithium-ion batteries don't like are extreme temperatures. Whenever possible, you should avoid leaving phones and laptops in hot cars or in chilly rooms, because these temperature extremes won't do their batteries' lifespans any favors. You should particularly watch out for overheating during charging—though if your phone or laptop manufacturer has done its job, this shouldn't be an issue.
As another precaution, you should also make sure you're using the official charger that came bundled with your phone or tablet, or you should invest in an exact replacement. This will guarantee that the charger is safe to use with your device's battery, and optimized to charge it as efficiently as possible. The official charger will apply the best practices for your battery's general health.