Skip to main content
12 events
when toggle format what by license comment
Feb 10, 2020 at 14:00 answer added Matoeil timeline score: 4
Apr 2, 2018 at 4:41 vote accept i am batman
Mar 31, 2018 at 0:35 comment added Jaypan I'm not clear - you've been given the information you need - is your problem solved?
Mar 31, 2018 at 0:16 comment added sonfd Thanks @Jaypan, updated my answer to include that info.
Mar 30, 2018 at 23:14 comment added Jaypan See sonfd's reply below. That's the way to do it. If you set jquery as a dependeny, jQuery will load above it.
Mar 30, 2018 at 16:35 answer added sonfd timeline score: 4
Mar 30, 2018 at 16:27 comment added sonfd Do you truly want all js in the header? or just the js used by your custom module?
Mar 30, 2018 at 15:47 comment added i am batman @Hudri Yes. I have already added jQuery to libraries.yml. But that too loads in the end of the page. Not on the top. I need to load all the javascripts at the top of the page.
Mar 30, 2018 at 15:46 comment added i am batman @Jaypan in the library.yml
Mar 30, 2018 at 13:44 comment added Jaypan How are you adding the scripts? This will determine the solution.
Mar 30, 2018 at 12:58 comment added Hudri What do you mean with "...in site folder..."? jQuery is part of Drupal's core, just add a dependency to core/jquery it in your module's library.yml file, you don't need any manual load ordering.
Mar 30, 2018 at 12:43 history asked i am batman CC BY-SA 3.0