crelte 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,10 +20,10 @@ export default class SsrComponents {
20
20
  let head = '';
21
21
  for (const req of requirements) {
22
22
  if (req.endsWith('.js')) {
23
- head += `\n\t\t<link rel="preload" href="${req}" as="script">`;
23
+ head += `\n\t\t<link rel="modulepreload" crossorigin href="${req}">`;
24
24
  }
25
25
  else if (req.endsWith('.css')) {
26
- head += `\n\t\t<link rel="stylesheet" href="${req}">`;
26
+ head += `\n\t\t<link rel="stylesheet" crossorigin href="${req}">`;
27
27
  }
28
28
  }
29
29
  return head;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crelte",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "author": "Crelte <support@crelte.com>",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -24,9 +24,9 @@ export default class SsrComponents {
24
24
  let head = '';
25
25
  for (const req of requirements) {
26
26
  if (req.endsWith('.js')) {
27
- head += `\n\t\t<link rel="preload" href="${req}" as="script">`;
27
+ head += `\n\t\t<link rel="modulepreload" crossorigin href="${req}">`;
28
28
  } else if (req.endsWith('.css')) {
29
- head += `\n\t\t<link rel="stylesheet" href="${req}">`;
29
+ head += `\n\t\t<link rel="stylesheet" crossorigin href="${req}">`;
30
30
  }
31
31
  }
32
32