Simple Static integration
-
Hi. have some problem with Simple Static generation. First of all need not all scripts to be included. On dev website I’ve managed to exclude those, which aren’t needed.
<script id="ct-scripts-js-extra">var ct_localizations = {"expand_submenu":"Rozwiń menu","collapse_submenu":"Zwiń rozwijane menu","public_url":"\/wp-content\/themes\/blocksy\/static\/bundle\/","dynamic_styles":{"lazy_load":"\/wp-content\/themes\/blocksy\/static\/bundle\/non-critical-styles.min.css?ver=2.1.10"},"dynamic_js_chunks":[{"id":"blocksy_sticky_header","selector":"header [data-sticky]","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/sticky.js?ver=2.1.10"}],"dynamic_styles_selectors":[{"selector":".ct-header-cart, #woo-cart-panel","url":"\/wp-content\/themes\/blocksy\/static\/bundle\/cart-header-element-lazy.min.css?ver=2.1.10"},{"selector":".flexy","url":"\/wp-content\/themes\/blocksy\/static\/bundle\/flexy.min.css?ver=2.1.10"},{"selector":"#account-modal","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/header-account-modal-lazy.min.css?ver=2.1.10"},{"selector":".ct-header-account","url":"\/wp-content\/plugins\/blocksy-companion\/static\/bundle\/header-account-dropdown-lazy.min.css?ver=2.1.10"}]};</script>But on static generated site all scripts are there. Moreover there are mixed contents because of http instead of https and there are dev urls and I need relative paths. Example of wrong paths:
<script id="ct-scripts-js-extra">
var ct_localizations = {"ajax_url":"http:\/\/test-cms.dev\/wp-admin\/admin-ajax.php","public_url":"http:\/\/test-cms.dev\/wp-content\/themes\/blocksy\/static\/bundle\/","rest_url":"http:\/\/test-cms.dev\/wp-json\/","search_url":"http:\/\/test-cms.dev\/search\/QUERY_STRING\/",Thank’s in advance. Great theme. Thinking of Premium
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Simple Static integration’ is closed to new replies.
