question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JoviDeCroockcommented, Mar 26, 2021

Ah damn, forgot about that 😅

1reaction
JoviDeCroockcommented, Mar 26, 2021

Closing and pushing #35 and #31 in a 1.2.0 release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found