Yes, the first JQuery include comes from WebSharper itself. Instead of creating your own resource for JQuery, you should use the one from WebSharper, which is at WebSharper.JQuery.Resources.JQuery. And to ensure that Semantic's script appears after JQuery's, you should add a dependency on it. So:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Resources =
    open WebSharper.Resources

    module X =

        // Force WebSharper's jQuery*.js to appear before semantic.min.js
    	[<Require(typeof<WebSharper.JQuery.Resources.JQuery>)>]
        type SemanticJS() =
            inherit BaseResource("semantic.min.js")

        type SemanticCSS() = 
            inherit BaseResource("semantic.min.css")


    [<assembly:Require(typeof<X.SemanticCSS>);
      assembly:Require(typeof<X.SemanticJS>)
      >]
    do()
By on 5/3/2017 7:55 AM ()

That works!

By on 5/3/2017 8:32 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper