10up/maps-block-apple

MapKit JS loads on every page, regardless of plugin usage

Closed this issue · 0 comments

Describe the bug

MapKit JS loads on every page, regardless whether there is a map block or not. Expected behavior: MapKit JS loading only on pages where a map block is used.
This negatively affects performance and PageSpeed scores.

Steps to Reproduce

With the plugin activated, add a map block on a page. MapKit JS loads on all other pages, too.

Screenshots, screen recording, code snippet

No response

Environment information

  • MacBook Pro
  • macOS 13.0.1 (22A400)
  • Safari 16.1

WordPress information

`

wp-core

version: 6.1.1
site_language: de_DE_formal
user_language: de_DE_formal
timezone: Europe/Berlin
permalink: /blog/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 5
dotorg_communication: true

wp-dropins (1)

object-cache.php: true

wp-active-theme

name: Neve (neve)
version: 3.4.5
author: ThemeIsle
author_website: https://themeisle.com
parent_theme: none
theme_features: core-block-patterns, hfg_support, widgets-block-editor, title-tag, post-thumbnails, automatic-feed-links, custom-logo, html5, customize-selective-refresh-widgets, custom-background, align-wide, editor-color-palette, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, header-footer-elementor, lifterlms-sidebars, lifterlms, service_worker, starter-content, amp, menus, widgets, themeisle-demo-import
theme_path: /home/customer/www/baptisten-zuverlaessiges-wort.church/public_html/wp-content/themes/neve
auto_update: Deaktiviert

wp-themes-inactive (1)

Twenty Twenty-Three: version: 1.0, author: WordPress-Team, Automatische Aktualisierungen deaktiviert

wp-plugins-active (29)

301 Redirects: version: 2.72, author: WebFactory Ltd, Automatische Aktualisierungen aktiviert
Advanced Sermons: version: 2.9.1, author: WP Codeus, Automatische Aktualisierungen aktiviert
Advanced Sermons Pro: version: 2.1, author: WP Codeus, Automatische Aktualisierungen deaktiviert
Akismet Anti-Spam: version: 5.0.1, author: Automattic, Automatische Aktualisierungen aktiviert
AMP: version: 2.3.0, author: AMP Project Contributors, Automatische Aktualisierungen aktiviert
Autoptimize: version: 3.1.3, author: Frank Goossens (futtta), Automatische Aktualisierungen aktiviert
Block for Apple Maps: version: 1.0.3, author: 10up, Automatische Aktualisierungen deaktiviert
Cookie and Consent Solution for the GDPR & ePrivacy: version: 3.3.0, author: iubenda, Automatische Aktualisierungen aktiviert
Display PHP Version: version: 1.7, author: David Gwyer, Automatische Aktualisierungen aktiviert
Favicon by RealFaviconGenerator: version: 1.3.25, author: Philippe Bernard, Automatische Aktualisierungen aktiviert
Font Awesome: version: 4.3.1, author: Font Awesome, Automatische Aktualisierungen aktiviert
Jetpack: version: 11.5.1, author: Automattic, Automatische Aktualisierungen deaktiviert
Jetpack Backup: version: 1.4.1, author: Automattic, Automatische Aktualisierungen aktiviert
Loco Translate: version: 2.6.3, author: Tim Whitlock, Automatische Aktualisierungen deaktiviert
Neve Pro Addon: version: 2.4.5, author: ThemeIsle, Automatische Aktualisierungen deaktiviert
Otter Pro: version: 2.1.4, author: ThemeIsle, Automatische Aktualisierungen deaktiviert
Otter – Page Builder Blocks & Extensions for Gutenberg: version: 2.1.4, author: ThemeIsle, Automatische Aktualisierungen deaktiviert
Share This Image PRO: version: 1.88, author: ILLID, Automatische Aktualisierungen aktiviert
Simple Page Ordering: version: 2.4.3, author: Jake Goldman, 10up, Automatische Aktualisierungen deaktiviert
Simple Social Icons: version: 3.1.1, author: StudioPress, Automatische Aktualisierungen aktiviert
SiteGround Optimizer: version: 7.2.6, author: SiteGround, Automatische Aktualisierungen aktiviert
SiteGround Security: version: 1.3.7, author: SiteGround, Automatische Aktualisierungen aktiviert
Site Kit by Google: version: 1.88.0, author: Google, Automatische Aktualisierungen aktiviert
Sugar Calendar: version: 2.2.4, author: Sandhills Development, LLC, Automatische Aktualisierungen deaktiviert
Sugar Calendar - Advanced Recurring: version: 1.0.1, author: Sandhills Development, LLC, Automatische Aktualisierungen deaktiviert
Sugar Calendar - Calendar Feeds: version: 1.3.1, author: Sandhills Development, LLC, Automatische Aktualisierungen deaktiviert
Templates Patterns Collection: version: 1.1.29, author: ThemeIsle, Automatische Aktualisierungen deaktiviert
WPCode Lite: version: 2.0.4.2, author: WPCode, Automatische Aktualisierungen deaktiviert
Yoast SEO: version: 19.10, author: Team Yoast, Automatische Aktualisierungen aktiviert

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-27 Q16 x86_64 2020-08-11 https://imagemagick.org
imagick_version: 3.4.3RC1
file_uploads: File uploads is turned off
post_max_size: 256M
upload_max_filesize: 256M
max_effective_size: 256 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 144 GB
imagick::RESOURCETYPE_DISK: 9223372036854775807
imagick::RESOURCETYPE_FILE: 12288
imagick::RESOURCETYPE_MAP: 144 GB
imagick::RESOURCETYPE_MEMORY: 72 GB
imagick::RESOURCETYPE_THREAD: 4
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27

wp-server

server_architecture: Linux 3.12.18-clouder0 x86_64
httpd_software: Apache
php_version: 7.4.33 64bit
php_sapi: apache2handler
max_input_variables: 3000
time_limit: 120
memory_limit: 768M
max_input_time: 120
upload_max_filesize: 256M
php_post_max_size: 256M
curl_version: 7.66.0 OpenSSL/1.1.1q-fips
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true

wp-database

extension: mysqli
server_version: 5.7.39-42-log
client_version: mysqlnd 7.4.33
max_allowed_packet: 33554432
max_connections: 500

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/customer/www/baptisten-zuverlaessiges-wort.church/public_html/wp-content
WP_PLUGIN_DIR: /home/customer/www/baptisten-zuverlaessiges-wort.church/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 256M
WP_MAX_MEMORY_LIMIT: 768M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Nicht definiert
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

`

Code of Conduct

  • I agree to follow this project's Code of Conduct