You can filter template_directory_uri
:
<?php
add_filter( 'template_directory_uri', function( $template_dir_uri ){
return str_replace( 'http://example.com', 'https://cdn.example.com', $template_dir_uri );
});
This will change URIs so they point at a CDN subdomain served via HTTPS.