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

Request for a topic update on including head scripts / styles #198

Open
1 task done
ioweb-gr opened this issue Sep 4, 2024 · 0 comments
Open
1 task done

Request for a topic update on including head scripts / styles #198

ioweb-gr opened this issue Sep 4, 2024 · 0 comments

Comments

@ioweb-gr
Copy link

ioweb-gr commented Sep 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What's missing?

Topic Link

https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/css-topics/css-themes.html

Description

Please add an example of how to add css with preload in the head section.
Currently we can add scripts or stylesheets with the classic way of

    <script src="Vendor_Module::path_to.js" defer="true" />
    <css src="Vendor_Module::path_to.css"/>

But there's no clear way to add preloaded css

So how would we be able to do something like this?

<title>JS and CSS preload example</title>

bouncing balls

<script src="main.js" defer></script>

Possible solutions

It should give a clear example of adding a css and a js file using rel="preload"

Additional information

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

No branches or pull requests

1 participant