View Single Post
Old Yesterday, 03:31 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
I think he was talking about the order the link statements are inserted into the head tag or each xhtml file. I think, without any "async" or "defer" their order in head determines their order of execution once the body has been fully loaded.

Okay, I just got to my desktop and fired it up and created an epub with 4 xhtnml files and two javascript files named "Script0001.js" and Script0002.js".

I then selected the 4 html files in BookBrowser and right clicked and included them.

They were inserted in that order in every xhtml file.

Are you seeing something different?

If I wanted the order to be reversed, I simply select the xhtml files I want to add the links too, and then right clicked and selected Link Javascripts... and when the javascript selection window opened I used the up down caret keys on the right side of dialog to swap the order of the javascript files making Script0002.js come first (and made sure they were all checked).

See the attached image.

Sigil then used that order of linking.

So I can not recreate what you are seeing about linkage order?
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-10-15 at 3.33.11 PM.png
Views:	6
Size:	69.5 KB
ID:	218648  

Last edited by KevinH; Yesterday at 03:46 PM.
KevinH is online now   Reply With Quote