Use Journals for your notes and blogging!

Software Development

A journal for sharing all things software development related


Rendering script tags in view components

Thu, 11 Jul 2019 14:14 UTC by garethbrown

Use 'defer'

According to post below, by using defer you are telling the parser not to execute it until the document had loaded thus avoiding the problem of the having to put it in the layout for proper execution. Defer is supported by chrome, safari, and ie(10+), ff(3.6+), o(15+)

https://stackoverflow.com/questions/43114200/where-should-i-include-a-script-for-a-view-component.


The information on this site is provided “AS IS” and without warranties of any kind either express or implied. To the fullest extent permissible pursuant to applicable laws, the author disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, non-infringement and suitability for a particular purpose.


Software development notes and articles

Email garethbrown: mail@appsoftware.com

UI block loader
One moment please ...