Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts not being loaded over https #72

Closed
warudin opened this issue May 6, 2020 · 3 comments
Closed

Fonts not being loaded over https #72

warudin opened this issue May 6, 2020 · 3 comments

Comments

@warudin
Copy link

warudin commented May 6, 2020

I've downloaded some fonts locally to my server and included them like this in a CSS file (fonts.css):

/* roboto-900italic - latin */
 @font-face {
   font-family: 'Roboto';
   font-style: italic;
   font-weight: 900;
   font-display: swap;
   src: url('../assets/fonts/roboto-v20-latin-900italic.eot'); /* IE9 Compat Modes */
   src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
        url('../assets/fonts/roboto-v20-latin-900italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
        url('../assets/fonts/roboto-v20-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */
        url('../assets/fonts/roboto-v20-latin-900italic.woff') format('woff'), /* Modern Browsers */
        url('../assets/fonts/roboto-v20-latin-900italic.ttf') format('truetype'), /* Safari, Android, iOS */
        url('../assets/fonts/roboto-v20-latin-900italic.svg#Roboto') format('svg'); /* Legacy iOS */
 }

With the Statically.io WordPress plugin disabled, the fonts.css file and the font files are being loaded over HTTPS. With the plugin enabled, the fonts are suddenly being loaded over HTTP and therefore omitted by the browser. I'm not sure why this is happening, the CSS file is loaded but it's only happening with Statically enabled.

Debug data:

PHP version: 7.3.16
WordPress version: 5.4.1
url: https://cdn.statically.io/sites/schenkeveldadvocaten.nl
dirs: wp-content,wp-includes
excludes: .php
qs_excludes: no-statically
quality: 90
width: 0
height: 0
smartresize: 0
webp: 1
external_images: 
emoji: 1
favicon: 0
favicon_shape: rounded
favicon_bg: #000000
favicon_color: #ffffff
og: 0
og_theme: light
og_fontsize: medium
og_type: jpeg
wpadmin: 0
relative: 1
https: 1
query_strings: 0
wpcdn: 1
private: 0
Active Plugins: the-events-calendar/the-events-calendar.php,antispam-bee/antispam_bee.php,autocomplete-for-relevanssi/autocomplete-for-relevanssi.php,cf7-conditional-fields/contact-form-7-conditional-fields.php,cf7-post-fields/cf7-post-fields.php,classic-editor/classic-editor.php,contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php,contact-form-7-honeypot/honeypot.php,contact-form-7/wp-contact-form-7.php,cookie-notice/cookie-notice.php,cpt-onomies/cpt-onomies.php,duplicator-pro/duplicator-pro.php,flamingo/flamingo.php,github-updater/github-updater.php,google-analytics-for-wordpress/googleanalytics.php,relevanssi/relevanssi.php,simple-page-ordering/simple-page-ordering.php,statically/statically.php,unyson/unyson.php,wordpress-seo/wp-seo.php,wp-defender/wp-defender.php,wp-hummingbird/wp-hummingbird.php,wp-last-modified-info/wp-last-modified-info.php,wp-smush-pro/wp-smush.php,wpmudev-updates/update-notifications.php,yet-another-related-posts-plugin/yarpp.php,
@fransallen
Copy link
Member

Can you share Statically Debug data here? (At the bottom of the plugin settings > Debug)

@warudin
Copy link
Author

warudin commented May 6, 2020

I've updated the opening post. For now I've disabled loading .css, .js and .min.js on this site.

@fransallen
Copy link
Member

This issue has been fixed in 0.6 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants