trgkanki / remaining_time

GNU Affero General Public License v3.0
17 stars 3 forks source link

the line that loads the js script should rather be added at the bottom of the template #39

Closed thiswillbeyourgithub closed 3 years ago

thiswillbeyourgithub commented 3 years ago

Hi,

I am using a script in my template that, if triggered too late after the card loaded impedes my learning.

I was wondering why my template was so slow on ankidroid and finally understood today that the cause was that it waited for your addon to finish running.

I found a solution that worked perfectly for me : putting the line in the template that loads your addon as the last line instead of the first.

I think you should consider making this permanent.

Congrats for this addon!

edit : similarly, I find it really slows down the loading of image occlusions.

edit : the slowdown is so dramatic that I decided to to disable your addon on mobile for the time being. I looked at the code and don't really understand how the substitution is made so I can't do a PR for this, sorry :/

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.