Page 1 of 1

Add javascript and CSS scripts in the compilation options.

Posted: Tue Mar 25, 2025 8:53 am
by falsam
Hello.
The LoadScript() function does not work with some Javascript scripts.

For example, this code returns the message “BABYLON is not defined”.

Code: Select all

Declare Start()

Procedure Start()      
  !if (BABYLON.Engine.isSupported()) {
  !} 
EndProcedure 

LoadScript("https://cdn.babylonjs.com/babylon.js", @Start())
I'd like to be able to add one or more javascript and CSS scripts in the compilation options. These files would be implemented correctly between the <header> tags.

I think these are also the wishes of other SpiderBasic coders.

Thank you in advance for this new feature 😉

Re: Add javascript and CSS scripts in the compilation options.

Posted: Tue Mar 25, 2025 10:10 am
by Peter
falsam wrote: Tue Mar 25, 2025 8:53 amI'd like to be able to add one or more javascript and CSS scripts in the compilation options. These files would be implemented correctly between the <header> tags.
+1

That would be very useful indeed!

Re: Add javascript and CSS scripts in the compilation options.

Posted: Tue Mar 25, 2025 10:33 am
by Caronte3D
+1

Re: Add javascript and CSS scripts in the compilation options.

Posted: Tue Mar 25, 2025 1:20 pm
by Quin
+1

Re: Add javascript and CSS scripts in the compilation options.

Posted: Fri Apr 04, 2025 1:50 pm
by Fred
A compiler directive should be enough for this, like 'IncludeScript' or 'IncludeHeaderScript'