DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Where to add defer tag to pages/script tags

Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12





Growing Member





    My point is that deferred or async loading of a script is part of the design of that script. Inflicting deferred or async loading on a script not designed for it is likely to have bad consequences.

    If this is important to you please consider proposing and implementing a pull request for the DNN core that properly implements the feature and allows developers/designers access to the correct choice for their scripts. If there is general interest in the feature you will likely find people who want to work with you on it.

    and in the dnn world it would be trial and error to implement large scale asynchronous calls in the loading of css and js files as an ad-hoc exercise. there are a lot of fish swimming in the pond. but i am not averse to exploring.

    to the larger point, fast page loading should be of interest to nearly anyone running a commercial sight or who plans to use, let's say, google ad words to advertise. google punishes mercilessly slow pages. if dnn implemented an asynchronous loading strategy, or made it configurable, and it had a material impact on page loads, then it should be in dnn's interest to pursue  it. it may not be as simple as all that.

    however, i made sufficient progress by implementing client resource management. desktop results are in the 90s and mobile in the 60s. that is good enough now.

     

    You are not authorized to post a reply.
    Page 2 of 2 << < 12

    These Forums are dedicated to the discussion of DNN Platform.

    For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

    1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
    2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
    3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
    4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
    5. No Flaming or Trolling.
    6. No Profanity, Racism, or Prejudice.
    7. Site Moderators have the final word on approving / removing a thread or post or comment.
    8. English language posting only, please.

    Would you like to help us?

    Awesome! Simply post in the forums using the link below and we'll get you started.

    Get Involved