Quote:
Originally Posted by KevinH
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?
|
Thanks a ton. It doesn't happen for me consistently, so (naturally) I can't duplicate it right now either. I just tried a few sample runs, and they came in as intended no matter what I did. They come in in reverse occasionally, so the next few times I do it, I'll try to make a mental note of exactly what I did, and report it back here when that happens.
Sorry for raising the issue when I don't have an example in hand, it's something I've worked with off an on for a few months and, Murphy's Law, naturally right now it's working precisely like it's supposed to.