Montevideo
Account created on 24 May 2013, over 11 years ago
#

Merge Requests

Recent comments

πŸ‡ΊπŸ‡ΎUruguay ruby232 Montevideo

I have the same error, same environment.

πŸ‡ΊπŸ‡ΎUruguay ruby232 Montevideo

Thanks, @apaderno, but now the user https://www.drupal.org/u/digitalprojex β†’ can not edit this Organization, can you verify the user digitalprojex.

πŸ‡ΊπŸ‡ΎUruguay ruby232 Montevideo

Added \;\& for case a URL has &display=swap

πŸ‡ΊπŸ‡ΎUruguay ruby232 Montevideo

I have the same problem, this is happening because the regex in the DeferCss class does not match the urls of sources.googleapis.com.
I gave you a custom solution

In my theme.libraries.ym i add:
//fonts.googleapis.com/css?family=Montserrat:400,500,600,700|Work+Sans:400,500,600,700: { type: external, attributes: { as: style, onload: "this.rel='stylesheet'" } }

And in mi theme.module i add:

/**
 * Implements hook_page_attachments_alter().
 *
 */
function theme_page_attachments_alter(array &$attachments) {
  $html = '<noscript><link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Montserrat:400,500,600,700|Work+Sans:400,500,600,700" /></noscript>';
  $attachments['#attached']["html_head"][] = [
    [
      '#type' => 'inline_template',
      '#template' => $html,
    ]
  ];
}

I base myself on the operation of the module html_head β†’ .

Production build 0.71.5 2024