Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

External javascript placement #1706


User avatar
0
jamsecgmbh created

Hi,

what's best practise to include external javascript (e.g. <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>) - in which file should I include them?

Thanks!


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Sorry for the late response (your post has not be seen). Normally, you should include this in what page you need it. If you need it in all pages, add it to layout. I could not understand if you wanted to ask something different.

  • User Avatar
    0
    jamsecgmbh created

    Thank you very much and no problem ;)

    I want to make it available in multiple pages and use the SPA - so I put it in Web/App/common/layout/layout.cshtml, right?

    Thanks!

  • User Avatar
    0
    hikalkan created
    Support Team

    yes, layout of SPA is that :)