-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
script is inserted before html #2
Comments
I would apply these changes if you agree? |
Lastly, if it must be in the
|
Ok, it doesn't need to be at the beginning, that is true. The recipe actually also adds to the page the current template, options and input data. This what you can't do with asset. So I think it makes sense to keep the recipe. However you are free to simply link the jsreport sdk and use html recipe, if you don't need the above |
ok I didn't know about other stuff... |
Well, no... You would have to add the path manually but then the script wan't now the serverUrl anyway. It is also part of the recipe's job. So probably better to use it and the omitting data switch will solve the perf problem. |
Done in 1.1.0 |
Is there a reason why the script that is automatically injected cannot be inserted via script tag?
Currently it is being inserted before document even begins, throwing off validation, and in some cases causing layout issue. Most importantly, the script injected contains report data, which in my case is rather large, so rendering is slowed down (compared to plain html recipie for example)
A simple solution would be just to require including a script link in either head or at the bottom.
It would be template author's responsibility to do so.
Another option would be to use new asset helper with special name.
The text was updated successfully, but these errors were encountered: