Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Microsoft edge javascript loading?

8 years 7 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

So, why in a community install Microsoft Edge starts with:

<head>
<script src=" url.net/components/com_community/assets/...dors/plupload.min.js "></script>
<script src=" url.net/components/com_community/assets/vendors/plupload.min.js "></script>
<link href="/components/com_community/assets/vendors/mediaelement/mediaelementplayer.min.css" rel="stylesheet" media="all">
<script src=" url.net/components/com_community/assets/...e.js?_=1474403075440 "></script>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">


And IE 11 doesn't include these javascripts?

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Midgem,

On your IE 11 all jomsocial functions are working fine? So maybe the script file include on another line.

Well, your account is not our valid members, maybe already expired, please you renewal your account to get support from us.

thank you

8 years 7 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

Yes in IE it works fine. The first path of Edge isnt rendered in this forum post fine. The actual can't exist. I tracked down where it is rendered and modifying the JS works.

8 years 6 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

Checked if the problem still exists on your demo site and it does. Also not listed as bug still

Attachments:
8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mindgem,

I dont have the IE browser for testing this now, but anyway.. before I checked it directly.. I wanna ask you which that error make the all Jomsocial functionality broken? or its still working?

thank you

8 years 6 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

It works. 'Just' loads the bundle twice (the large js) twice on certain pages.

when I remove bundle.js?<timestamp> it doesn't work.

8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

ok, I will talk this with our javascript developer

8 years 6 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

Great. Gl with fixing

8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

sure..our javascript developer will inspect this today..

8 years 4 months ago
  • Mindgem's Avatar
    Topic Author
  • Mindgem
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:

Well took another look at this issue. Turns out to be a bit different then written in the first post. This code from loader.js always loads the 'j = "bundle.js?_=" + (new Date).getTime();'

function c() {
        var b = a.joms.DEBUG,
            c = a.joms_assets_url || "",
            g = c + (b ? e : f) + j;
        a.joms.$LAB.script(function() {
            return a.jQuery ? null : c + h
        }).wait(function() {
            a.joms_init_toolkit()
        }).wait(d).script(function() {
            return b ? c + i : null
        }).wait(function() {
            b && require.config({
                baseUrl: c + e
            })
        }).script(g).wait(function() {
            a.joms_init_postbox(), a.joms.misc.view.fixSVG()
        })
    }

Guess Microsoft Edge and IE 11 now show in the header directly written javascript to the header better.

So every jomsocial installation always load release_32/bundle and release/bundle. Which now I look at it isn't supprising, because 'pmSend' isn't defined in release_32/bundle, but is taken from release/bundle. To test edit the reference of 'j = "bundle.js?_=" + (new Date).getTime();' to bundletest.js?_=" and try to click an joms.api.pmSend('53') event. The console will tell you 'pmSend' isn't defined.

And one of the two a.joms_init_postbox() or a.joms.misc.view.fixSVG() directly writes to the header (and now become visible in Microsoft Edge) the invalid tag:
<script src="http://www.jomsocial.com/components/com_community/assets/_release/../../assets/vendors/plupload.min.js"></script>

So kindy messy javascripting. On the other hand, lot's of room for improvements.

8 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Thank you for your feedback, I will discuss it with our javascript developer.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW