문제

I primarily develop internal web apps where IE8 is still installed on many PC's as the primary web browser. I'd like to include this HTML5 placeholder plolyfill, https://github.com/ginader/HTML5-placeholder-polyfill, for all of my Durandal-based views. What's the best way to accomplish this?

도움이 되었습니까?

해결책

There are no special consideration other than loading the polyfill to your SPA according to the instructions. Of course as this polyfill requires jQuery make sure that jQuery is loaded before including it.

e.g.

<head>
    ....
    <link rel="stylesheet" href="placeholder_polyfill.min.css">
    ...
    <script src="placeholder_polyfill.jquery.min.combo.js" charset="utf-8"></script>
    ...
</head>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top