Changeset 3791202 for cliedesk/trunk/src/Modules/Widget/WidgetModule.php
- Timestamp:
- 11/08/2026 04:28:35 PM (less than one hour ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cliedesk/trunk/src/Modules/Widget/WidgetModule.php
r3787995 r3791202 936 936 return; 937 937 } 938 // The page carries the public config: a cached copy is refreshed when the settings change. 939 \Cliedesk\Infrastructure\Http\NoCache::tag_public(); 938 940 wp_enqueue_script( 939 941 'cliedesk-widget', … … 953 955 return $tag; 954 956 } 955 // The public config travels with the script: no extra request on the site itself. 956 return str_replace( ' src=', ' data-config="' . esc_attr( (string) wp_json_encode( $config ) ) . '" src=', $tag ); 957 // The public config travels with the script: no extra request on the site itself. The loader finds that 958 // config through its own tag, so an optimizer must not merge or delay it (LiteSpeed Cache: these attributes). 959 return str_replace( ' src=', ' data-no-optimize="1" data-no-defer="1" data-config="' . esc_attr( (string) wp_json_encode( $config ) ) . '" src=', $tag ); 957 960 }, 958 961 10,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)