Performance tips ​
Google Maps API scripts add weight to your page. Here are practical tips to minimize the impact.
Load maps only where needed ​
WP Google Street View only enqueues the Google Maps JavaScript on pages that contain a WPGSV shortcode. The script is not loaded globally. This is already optimized by default.
Minimize maps per page ​
Each map instance triggers API calls. If a page has 5 maps, that is 5 map loads counted against your quota. Consider whether all maps are necessary or if some could be linked to dedicated pages instead.
Optimize images ​
If you use custom marker icons, optimize them:
- Use
.webpformat - Keep file size under 10 KB
- Use 32×32 or 64×64 pixel dimensions
Leverage browser caching ​
Google's API scripts are served from maps.googleapis.com with appropriate cache headers. Your visitors' browsers will cache these scripts automatically on repeat visits.
Use a CDN ​
If your site uses Cloudflare or another CDN, your static assets (plugin CSS, JS) are already cached at the edge. See Cloudflare setup.