Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
Blazor static content in F# library

Blazor (WASM) supports libraries containing javascript (besides other static contents and components).

Javascript files can be referenced with standard <script> elements in the index.html page of the main project

/_content/<library>/<path>/<file.js>

where <path>/<file.js> must be located under the wwwroot folder of the library project.

What if my library is F# instead of C#? We can write components in F# (of course all in .fs files, no .razor), but what if I want also to put javascript specific to the component in the same F# project?

BTW similar question would apply to .css

Please note:

  • javascript and css isolation are available in C#. It would be handy to be able to do it also in a F# component library.
  • I know there is Bolero for F# and Blazor, In this case I am not going to use Bolero.
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!