scripts
See original GitHub issueI’m currently using Helmet but I do prefer the hooks approach you offer.
One thing I’m missing is <script>
support. It’s nice to be able to encapsulate trackers and other scripts that have to go in <head>
for technical reasons so they can be placed where they make sense in the application.
Helmet’s support for <script>
is very rudimentary IMHO - it just adds the tag without regards for SSR-rendered previous tags, and if you put in an inline script, it won’t run it, so that will only work for SSR.
So, ideally, hoofd would:
- support script tags
- mark SSR-ed script tags in a way they can be recognized after hydration
- only add script tags once, also after hydration
eval
inline scripts when run in the browser, but add them to<head>
when run during SSR
But, I would already be happy with simply supporting the tag.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Scripts.com
A large collection of movie scripts, screenplays and transcripts - runs by a community of amateur and professional writers.
Read more >Express Scripts Members: Manage Your Prescriptions Online
Millions trust Express Scripts for safety, care and convenience. Express Scripts makes the use of prescription drugs safer and more affordable.
Read more >SimplyScripts
Free screenwriters screenplay resource and discussion board. Make your script better. Read professional movie scripts and screenplays.
Read more >Scripts Cafe
... Contact · GIFT CARDS · Work At Scripts · Scripts Cafe. 2 East Avenue Lockport, NY, 14094 United States. (716)438-1212. mail@scripts-cafe.com.
Read more >Script - Wikipedia
Script, a distinctive writing system, based on a repertoire of specific elements or symbols, or that repertoire · Script (styles of handwriting) ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah damn, forgot about that 😅
Closing and pushing #35 and #31 in a 1.2.0 release