arvgta / ajaxify

Ajaxify - The Ajax Plugin
https://4nf.org/
274 stars 124 forks source link

Issue with CSS #229

Closed misog closed 1 year ago

misog commented 1 year ago

Hi, here is the original issue I had:

Code: https://phpsandbox.io/e/x/nznhx?layout=EditorPreview&defaultPath=%2F&theme=dark&showExplorer=no&openedFiles= Actual site: https://nznhx.ciroue.com

The CSS is broken after ajaxify reload (JS works)

arvgta commented 1 year ago

Yes, I can reproduce the bug, when pressing:

The page(style) breaks on reload. However, I have no idea why? Where is the CSS you're talking about?

misog commented 1 year ago

The plugin owner changed CDN or something, here it is https://nznhx.ciroue.com Working: Screenshot from 2022-08-17 20-39-19

Not working: Screenshot from 2022-08-17 20-39-28

Code:

<html>
<head>
    <script src="https://cdn.jsdelivr.net/npm/picmo@latest/dist/umd/index.js"></script>
    <script src="https://4nf.org/ajaxify.js"></script>
    <script>
        let ajaxify = new Ajaxify({
            verbosity: 100,
            prefetchoff: true,
        });
    </script>
</head>
<body>
    <a href="/?reload=<?=microtime(true)?>">Reload with ajaxify</a>
    <div class="pickerContainer"></div>
    <script>
        var container = document.querySelector('.pickerContainer');
        var picker = picmo.createPicker({
            rootElement: container
        });
    </script>
</body>
</html>