UseEmbeddedScripts

6 posts, 0 answers
  1. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 28 Oct 2007 Link to this post

    can i confirm at this point we must use embedded scripts for prometheus RadEditor?  (am trying to speed up my webpage which is quite slow - downloads ~1.2mb of libraries on the first hit!)

    here it is running live - www.techpipeline.net (link will open in a new window)

    ps my feedback on the current skins 'customisation' process is I found the documentation/process to be difficult to use (I gave up in the end trying to make the control use the 'skins' directory).  I'm sure with more persistence I would get there but it's not worth the time investment.

    keep up the good work..

    cheers
    ewart

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 29 Oct 2007 Link to this post

    Hello ewart,

    Yes, RadControls Prometheus does not provide a way to load their scripts from external files, e.g. EnableEmbeddedScripts is always true (and actually this property is not present in Prometheus). Regarding the speed optimization, you could try the RadScriptManager (currently hidden in Telerik.Web.UI) which will combine and compress all scripts from the Telerik.Web.UI assembly. This control is currently the same as AjaxControlToolkit's ToolkitScriptManager, but will be updated in one of the next hotfixes to avoid some of the limitations of its toolkit counterpart.

    <telerik:radscriptmanager runat="server" id="RadScriptManager1"></telerik:radscriptmanager>
    <telerik:radeditor runat="server" id="RadEditor1"></telerik:radeditor>


    If your scripts are WebResources, you could add the following assembly attribute in your application, which will force RadScriptManager to combine and compress both Telerik.Web.UI's scripts and your scripts.
    [assembly: Telerik.Web.UI.ScriptCombine]

    Note that this control is currently in development and you could have problems using it. Please, let me know how it goes.

    Greetings,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 08 Jan 2008 Link to this post

    Are there any plans in the future to remove the scripts and no longer have them embedded? If so, at what point can we expect to see that?
  5. George
    Admin
    George avatar
    859 posts

    Posted 10 Jan 2008 Link to this post

    Hi Adam,


    Currently there are no such plans. We chose to use embedded scripts because this way the deployment on the client's side is much easier and convenient.

    Can you please let us know why do you need to have external scripts and how do you intend to use them? Your feedback will be appreciated.



    Looking forward to hearing from you,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  6. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 10 Jan 2008 Link to this post

    We have been considering a hardware load balancing setup, but it is only able to compress and cache static *.js files. Also, in our current setup, we do not believe that the output from the *.axd files can be compressed by IIS when it is sent out to the client unless the files are static.
  7. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 10 Jan 2008 Link to this post

    Hello Adam,

    The editor scripts will be sent compressed if you have set the debug option in your web.config file to "false":

    ...
    <compilation debug="false">
    ...


    All the best,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017