Combine JavaScript breaks Gumroad JS
-
I wanted to use Gumroad embed feature to allow customers to check out without leaving the website, however, I noticed that Combine JavaScript Files is in conflict with Gumroad inline JS code
<script src="https://gumroad.com/js/gumroad.js"></script>I tried following your pin thread and created this code
add_filter( 'sgo_javascript_combine_excluded_inline_content', 'js_combine_exclude_inline_script' ); function js_combine_exclude_inline_script( $exclude_list ) { $exclude_list[] = 'https://gumroad.com/js/gumroad.js'; return $exclude_list; }I tried adding it to Code Snippet and even manually adding it to functions.php file but no luck.
If something’s wrong with the code or the way I used it please point it out. and I hope that in future updates you add an option to exclude codes within the plugin itself, honestly most caching plugins already have that option, but yours is awesome!
Thanks.
The page I need help with: [log in to see the link]
The topic ‘Combine JavaScript breaks Gumroad JS’ is closed to new replies.